diff options
author | Roelf-Jilling <r-j.wolthuis@live.com> | 2020-01-13 22:17:24 +0300 |
---|---|---|
committer | Roelf-Jilling <r-j.wolthuis@live.com> | 2020-01-16 19:55:58 +0300 |
commit | e1a37d0430d64654b816a64e27df19146211b2f1 (patch) | |
tree | c73aad61707706a5bdd95573ecd546345927142f /tests | |
parent | f0061bfa2a2f154c29fd6067cd2d7a033296f345 (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.txt | 9 |
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) |