From 262c1f53c13ce2bcb902f2cd800a4685b61ec458 Mon Sep 17 00:00:00 2001 From: Michele Caini Date: Wed, 16 Nov 2022 10:46:34 +0100 Subject: [PATCH] cmake: only enable -Wdocumentation for clang-cl --- test/CMakeLists.txt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 9b9b90abf..a9c39f2f3 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -62,7 +62,7 @@ function(SETUP_TARGET TARGET_NAME) -Wno-unused-local-typedef -Wno-unused-private-field > - # documentation diagnostic on also for clang-cl + # documentation diagnostic turned on for clang-cl only $<$:-Wdocumentation> /EHsc /wd4324 /wd4996 $<$:/Od> @@ -73,7 +73,6 @@ function(SETUP_TARGET TARGET_NAME) ${TARGET_NAME} PRIVATE -pedantic -fvisibility=hidden -Wall -Wshadow -Wno-deprecated-declarations - $<$:-Wdocumentation> $<$:-O0 -g> $<$:-O2> )