Change target compile options
If in mode debug then all warnings are shown, in release mode just compile without showing warnings
This commit is contained in:
@@ -8,10 +8,11 @@ set(LIBS
|
||||
gtest
|
||||
TopTeamBedrijfssimulaties)
|
||||
|
||||
|
||||
# tests
|
||||
file(GLOB_RECURSE TEST_SOURCES "*.cpp")
|
||||
add_executable(tests ${TEST_SOURCES})
|
||||
target_link_libraries(tests ${LIBS})
|
||||
|
||||
target_compile_options(tests PRIVATE -Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion)
|
||||
target_compile_options(tests PRIVATE $<$<CONFIG:Debug>:
|
||||
-Wall -Wextra -pedantic-errors -Wconversion -Wsign-conversion
|
||||
>)
|
||||
Reference in New Issue
Block a user