Make warnings non-fatal during debug builds

This commit is contained in:
2017-04-26 04:00:21 -05:00
parent c4c70ddabe
commit a7a9256503
+6 -1
View File
@@ -24,10 +24,15 @@ if(NOT MSVC)
-fno-rtti
-Wsign-compare
-Wunused-variable
-Werror
#--analyze
#-Os # GCC size optimization flag
)
if (CMAKE_BUILD_TYPE STREQUAL "Release")
add_definitions(
-Werror
)
endif()
endif(NOT MSVC)
enable_testing()