check_LANG_compiler_flag: add the "deprecated switch" message for GCC

Add the "deprecated switch" message for GCC to
CMakeCheckCompilerFlagCommonPatterns.cmake.
This commit is contained in:
Alessandro Menti 2019-12-30 11:14:12 +01:00
parent b52962bd61
commit 8b10e493ac
No known key found for this signature in database
GPG Key ID: 467AC0B4D6A6F336

View File

@ -9,6 +9,7 @@
macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
set(${_VAR}
FAIL_REGEX "[Uu]nrecogni[sz]ed .*option" # GNU, NAG
FAIL_REGEX "switch .* is no longer supported" # GNU
FAIL_REGEX "unknown .*option" # Clang
FAIL_REGEX "optimization flag .* not supported" # Clang
FAIL_REGEX "unknown argument ignored" # Clang (cl)