Try short-circuit form

This commit is contained in:
Dmitry Kobets 2021-11-30 13:22:13 -08:00
parent 279c0ad89b
commit 502fa7625f

View File

@ -130,11 +130,13 @@ else()
-Wno-unused-member-function -Wno-unused-member-function
-Wno-unused-variable -Wno-unused-variable
> >
$<$<AND:$<BOOL:${CMAKE_CXX_STANDARD}>,$<EQUAL:${CMAKE_CXX_STANDARD},20>>: $<$<BOOL:${CMAKE_CXX_STANDARD}>:
$<$<EQUAL:${CMAKE_CXX_STANDARD},20>:
-Wzero-as-null-pointer-constant- # Very noisy, minor, and just so -Wzero-as-null-pointer-constant- # Very noisy, minor, and just so
-Wsign-conversion- # happens to trigger on googletest -Wsign-conversion- # happens to trigger on googletest
> >
> >
>
$<$<CXX_COMPILER_ID:Clang>: $<$<CXX_COMPILER_ID:Clang>:
$<$<AND:$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,4.99>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>: $<$<AND:$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,4.99>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>:
$<$<EQUAL:${GSL_CXX_STANDARD},17>:-Wno-undefined-func-template> $<$<EQUAL:${GSL_CXX_STANDARD},17>:-Wno-undefined-func-template>