From 393345cadeab1fcb7f31fb2ca4d5d10bde259a84 Mon Sep 17 00:00:00 2001 From: James Moore Date: Sun, 26 Jan 2020 11:02:17 +0000 Subject: [PATCH] Fixed issue with target_compile_options --- test/CMakeLists.txt | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 3ee32e795..ba97ba66f 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -144,13 +144,9 @@ foreach(file ${files}) DOCTEST_CONFIG_SUPER_FAST_ASSERTS ) target_compile_options(${testcase} PRIVATE - $<$:/EHsc;$<$:/Od>> - $<$>:-Wno-deprecated;-Wno-float-equal> + $<$:/EHsc;/W4;/WX;$<$:/Od>> + $<$>:-Wno-deprecated;-Wno-float-equal;-Wall;-Wextra;-pedantic;-Werror> $<$:-Wno-deprecated-declarations> - ) - target_compile_options(${testcase} PRIVATE - $<$:/W4;/WX>> - $<$>:-Wall;-Wextra;-pedantic;-Werror>> ) target_include_directories(${testcase} PRIVATE thirdparty/doctest