summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-03-31 12:50:48 (GMT)
committerBrad King <brad.king@kitware.com>2016-03-31 18:09:07 (GMT)
commitfae80ee2c347b87a65b80a3c8caa598c40680cc0 (patch)
tree6daac31a0769e80d72d4260d89955dde6ddf465f /Modules
parent0aa736e62545cee8e3ed6c39667705d31ce66b8c (diff)
downloadCMake-fae80ee2c347b87a65b80a3c8caa598c40680cc0.zip
CMake-fae80ee2c347b87a65b80a3c8caa598c40680cc0.tar.gz
CMake-fae80ee2c347b87a65b80a3c8caa598c40680cc0.tar.bz2
Check*CompilerFlag: Add another pattern for Clang (#16038)
Match a warning pattern produced by `clang-cl`. Suggested-by: Reid Kleckner <rnk@google.com>
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 07d8b1e..a350a84 100644
--- a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
+++ b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
@@ -24,6 +24,7 @@ macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
FAIL_REGEX "[Uu]nrecogni[sz]ed .*option" # GNU, NAG
FAIL_REGEX "unknown .*option" # Clang
FAIL_REGEX "optimization flag .* not supported" # Clang
+ FAIL_REGEX "unknown argument ignored" # Clang (cl)
FAIL_REGEX "ignoring unknown option" # MSVC, Intel
FAIL_REGEX "warning D9002" # MSVC, any lang
FAIL_REGEX "option.*not supported" # Intel