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
This commit is contained in:
Roelf-Jilling 2020-01-13 20:17:24 +01:00
parent f0061bfa2a
commit e1a37d0430

View File

@ -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)