Update compile flags

This commit is contained in:
Dawid Drozd 2017-08-06 17:13:00 +02:00
parent a46362bc6b
commit ffbf4b91a9
3 changed files with 6 additions and 5 deletions

View File

@ -20,12 +20,12 @@ TARGET_INCLUDE_DIRECTORIES(EventBus PUBLIC
)
TARGET_COMPILE_OPTIONS(EventBus
PRIVATE -Wall -pedantic -Wno-unused-private-field -Wnon-virtual-dtor #-Werror
PRIVATE -Wall -pedantic -Wno-unused-private-field -Wnon-virtual-dtor -Wno-gnu
-Werror
)
SET_TARGET_PROPERTIES(EventBus PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED YES
)
TARGET_COMPILE_FEATURES(EventBus

View File

@ -13,7 +13,8 @@ ADD_EXECUTABLE(EventBusPerformance
)
TARGET_COMPILE_OPTIONS(EventBusPerformance
PRIVATE -Wall -pedantic -Wno-unused-private-field -Wnon-virtual-dtor #-Werror
PRIVATE -Wall -pedantic -Wno-unused-private-field -Wnon-virtual-dtor
-Werror
)
SET_TARGET_PROPERTIES(EventBusPerformance PROPERTIES

View File

@ -5,7 +5,6 @@ ADD_EXECUTABLE(EventBusTest
eventbus/EventCollectorTest.cpp
eventbus/NotifierTest.cpp
eventbus/NotificationTest.cpp
eventbus/sample.cpp
)
SET_TARGET_PROPERTIES(EventBusTest PROPERTIES
@ -14,7 +13,8 @@ SET_TARGET_PROPERTIES(EventBusTest PROPERTIES
)
TARGET_COMPILE_OPTIONS(EventBusTest
PRIVATE -Wall -pedantic -Wno-unused-private-field -Wnon-virtual-dtor #-Werror
PRIVATE -Wall -pedantic -Wno-unused-private-field -Wnon-virtual-dtor -Wno-gnu
-Werror
)
TARGET_INCLUDE_DIRECTORIES(EventBusTest PRIVATE Catch/single_include/)