summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
diff options
context:
space:
mode:
authorAlessandro Menti <alessandro.menti@alessandromenti.it>2019-12-30 10:14:12 (GMT)
committerAlessandro Menti <alessandro.menti@alessandromenti.it>2019-12-30 10:14:12 (GMT)
commit8b10e493ac7fc31252c3dbe258ed38af5826999c (patch)
tree7c15c412b053e24526f28ab2a7409c1b1d243b79 /Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
parentb52962bd61c08a657d0a7e98cd93eefc94ba502b (diff)
downloadCMake-8b10e493ac7fc31252c3dbe258ed38af5826999c.zip
CMake-8b10e493ac7fc31252c3dbe258ed38af5826999c.tar.gz
CMake-8b10e493ac7fc31252c3dbe258ed38af5826999c.tar.bz2
check_LANG_compiler_flag: add the "deprecated switch" message for GCC
Add the "deprecated switch" message for GCC to CMakeCheckCompilerFlagCommonPatterns.cmake.
Diffstat (limited to 'Modules/CMakeCheckCompilerFlagCommonPatterns.cmake')
-rw-r--r--Modules/CMakeCheckCompilerFlagCommonPatterns.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
index e1ce617..2dc75d6 100644
--- a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
+++ b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
@@ -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)