Disable -Werror in debug builds
This commit is contained in:
@ -20,11 +20,16 @@ add_definitions(
|
||||
-fno-rtti
|
||||
#-g
|
||||
#-fcolor-diagnostics
|
||||
-Werror
|
||||
#--analyze
|
||||
#-Os # GCC size optimization flag
|
||||
)
|
||||
|
||||
if (CMAKE_BUILD_TYPE STREQUAL "Release")
|
||||
add_definitions(
|
||||
-Werror
|
||||
)
|
||||
endif()
|
||||
|
||||
enable_testing()
|
||||
|
||||
add_subdirectory(src)
|
||||
|
Reference in New Issue
Block a user