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
path: root/tests
diff options
context:
space:
mode:
authorRoelf-Jilling <r-j.wolthuis@live.com>2020-01-13 22:17:24 +0300
committerRoelf-Jilling <r-j.wolthuis@live.com>2020-01-16 19:55:58 +0300
commite1a37d0430d64654b816a64e27df19146211b2f1 (patch)
treec73aad61707706a5bdd95573ecd546345927142f /tests
parentf0061bfa2a2f154c29fd6067cd2d7a033296f345 (diff)
Suppress -Wundefined-func-template for C++17 Clang v5.0.x and AppleClang 9.1
Warning appears on v5.0.2 from apt.llvm.org and Ubuntu provided v5.0.1
Diffstat (limited to 'tests')
-rw-r--r--tests/CMakeLists.txt9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index 5c93a9a..680bd5e 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -79,7 +79,14 @@ else()
-Wno-weak-vtables
>
$<$<CXX_COMPILER_ID:Clang>:
- $<$<CXX_COMPILER_VERSION:5.0.2>:-Wno-undefined-func-template>
+ $<$<AND:$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,4.99>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,6>>:
+ $<$<EQUAL:${GSL_CXX_STANDARD},17>:-Wno-undefined-func-template>
+ >
+ >
+ $<$<CXX_COMPILER_ID:AppleClang>:
+ $<$<AND:$<VERSION_GREATER:$<CXX_COMPILER_VERSION>,9.1>,$<VERSION_LESS:$<CXX_COMPILER_VERSION>,10>>:
+ $<$<EQUAL:${GSL_CXX_STANDARD},17>:-Wno-undefined-func-template>
+ >
>
)
endif(MSVC)