summaryrefslogtreecommitdiffstats
path: root/SetFlags.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'SetFlags.cmake')
-rw-r--r--SetFlags.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/SetFlags.cmake b/SetFlags.cmake
index 1c1071499..9c7749431 100644
--- a/SetFlags.cmake
+++ b/SetFlags.cmake
@@ -202,5 +202,11 @@ function(set_exe_flags TARGET)
-Wno-reserved-identifier
)
endif()
+ if(CMAKE_CXX_COMPILER_VERSION VERSION_GREATER_EQUAL 16)
+ target_compile_options(
+ ${TARGET} PRIVATE
+ -Wno-unsafe-buffer-usage
+ )
+ endif()
endif()
endfunction()