Enable Werror for dev builds

This commit is contained in:
Martin Hořeňovský
2017-11-21 15:23:30 +01:00
parent 3b965aa501
commit 87c125ecb8
4 changed files with 22 additions and 3 deletions

View File

@@ -302,7 +302,7 @@ if (NOT NO_SELFTEST)
# Add desired warnings
if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang|GNU" )
target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code )
target_compile_options( SelfTest PRIVATE -Wall -Wextra -Wunreachable-code -Werror )
endif()
# Clang specific warning go here
if ( CMAKE_CXX_COMPILER_ID MATCHES "Clang" )