diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index ffa039c3c..9b9b90abf 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -54,7 +54,16 @@ function(SETUP_TARGET TARGET_NAME) # vs2017 emits too many false positives for my tastes $, /W1, /W4> # clang-cl goes a little wrong with some warnings instead - $<$:-Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unknown-warning-option -Wno-exceptions -Wno-unused-local-typedef -Wno-unused-private-field> + $<$: + -Wno-deprecated-declarations + -Wno-ignored-qualifiers + -Wno-unknown-warning-option + -Wno-exceptions + -Wno-unused-local-typedef + -Wno-unused-private-field + > + # documentation diagnostic on also for clang-cl + $<$:-Wdocumentation> /EHsc /wd4324 /wd4996 $<$:/Od> $<$:/O2> @@ -64,6 +73,7 @@ function(SETUP_TARGET TARGET_NAME) ${TARGET_NAME} PRIVATE -pedantic -fvisibility=hidden -Wall -Wshadow -Wno-deprecated-declarations + $<$:-Wdocumentation> $<$:-O0 -g> $<$:-O2> )