Try different negation style

This commit is contained in:
Dmitry Kobets 2021-12-01 09:43:22 -08:00
parent 192a2b505c
commit d0b0eac187

View File

@ -132,8 +132,8 @@ else()
>
$<$<BOOL:${CMAKE_CXX_STANDARD}>:
$<$<EQUAL:${CMAKE_CXX_STANDARD},20>:
-Wzero-as-null-pointer-constant- # Very noisy, minor, and just so
-Wsign-conversion- # happens to trigger on googletest
-Wno-zero-as-null-pointer-constant # Very noisy, minor, and just so
-Wno-sign-conversion # happens to trigger on googletest
>
>
>
@ -237,8 +237,11 @@ else()
-Wextra
-Wpedantic
-Wshadow
$<$<NOT:$<AND:$<BOOL:${CMAKE_CXX_STANDARD}>, $<EQUAL:${CMAKE_CXX_STANDARD},20>>>:
-Wsign-conversion # happens to trigger on googletest
-Wsign-conversion
$<$<BOOL:${CMAKE_CXX_STANDARD}>: # happens to trigger on googletest
$<$<EQUAL:${CMAKE_CXX_STANDARD},20>:
-Wno-sign-conversion # happens to trigger on googletest
>
>
$<$<OR:$<CXX_COMPILER_ID:Clang>,$<CXX_COMPILER_ID:AppleClang>>:
-Weverything