aboutsummaryrefslogtreecommitdiff
path: root/CompilerChecks.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'CompilerChecks.cmake')
-rw-r--r--CompilerChecks.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/CompilerChecks.cmake b/CompilerChecks.cmake
index 7219aafc..5762ee15 100644
--- a/CompilerChecks.cmake
+++ b/CompilerChecks.cmake
@@ -48,6 +48,12 @@ if (UNIX)
list(APPEND SUPPORTED_COMPILER_FLAGS "-fstack-protector")
endif()
unset(CMAKE_REQUIRED_FLAGS)
+
+ if (PICKY_DEVELOPER)
+ add_c_compiler_flag("-Werror" SUPPORTED_COMPILER_FLAGS)
+ add_c_compiler_flag("-Wno-error=deprecated-declarations" SUPPORTED_COMPILER_FLAGS)
+ add_c_compiler_flag("-Wno-error=tautological-compare" SUPPORTED_COMPILER_FLAGS)
+ endif()
endif()
if (MSVC)