Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/microsoft/GSL.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kobets <dmitrykobets@microsoft.com>2021-12-01 00:13:35 +0300
committerDmitry Kobets <dmitrykobets@microsoft.com>2021-12-01 00:13:35 +0300
commit279c0ad89b83297b473221bbb6d97782f4387be5 (patch)
tree046196670f2bfbd90bc1eb0cdb65141df99cd474
parentb7b1eaf9f20e7c821f50ad34aa5b31688fbbc765 (diff)
Check for presence of variable
-rw-r--r--tests/CMakeLists.txt8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index ed6cb01..837b6ee 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -130,10 +130,10 @@ else()
-Wno-unused-member-function
-Wno-unused-variable
>
- $<$<EQUAL:${CMAKE_CXX_STANDARD},20>:-Wzero-as-null-pointer-constant-> # Very noisy, minor, and just so
- # happens to trigger on googletest
- # for Ubuntu 20.04
- $<$<EQUAL:${CMAKE_CXX_STANDARD},20>:-Wsign-conversion->
+ $<$<AND:$<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
+ >
>
$<$<CXX_COMPILER_ID:Clang>:
$<$<AND:$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,4.99>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>: