summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2019-03-19 12:52:00 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-03-19 12:52:11 (GMT)
commita9a4f3b1936c8e9b659b7b59166d1e73dc6d2397 (patch)
tree0191aa323e978891653b28114ed0f7fb7c3d59ad /Modules
parente67e4dbaadf3583d665fb5409b425e1a238d9748 (diff)
parentc213e34d0cbcd2dcc8b0735103d9f4a1f1346dda (diff)
downloadCMake-a9a4f3b1936c8e9b659b7b59166d1e73dc6d2397.zip
CMake-a9a4f3b1936c8e9b659b7b59166d1e73dc6d2397.tar.gz
CMake-a9a4f3b1936c8e9b659b7b59166d1e73dc6d2397.tar.bz2
Merge topic 'cray-bad-compiler-option'
c213e34d0c cray: Detect bad options passed on the command line Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3110
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CMakeCheckCompilerFlagCommonPatterns.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
index e60ffe0..5b9ed34 100644
--- a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
+++ b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
@@ -30,5 +30,6 @@ macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
FAIL_REGEX "Incorrect command line option:" # Borland
FAIL_REGEX "Warning: illegal option" # SunStudio 12
FAIL_REGEX "[Ww]arning: Invalid suboption" # Fujitsu
+ FAIL_REGEX "An invalid option .* appears on the command line" # Cray
)
endmacro ()