summaryrefslogtreecommitdiffstats
path: root/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
diff options
context:
space:
mode:
authorNicolas Bock <nicolasbock@gmail.com>2015-02-03 00:07:04 (GMT)
committerBrad King <brad.king@kitware.com>2015-02-05 16:16:59 (GMT)
commit393a45e2e1fa2f0d9657d4a686257d828cd918e4 (patch)
treeccd26d489a638ad27df4f2304b5c2e990e2a76c3 /Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
parent098160d5f2a1aa35d2f14c585dd87cefd8f56f41 (diff)
downloadCMake-393a45e2e1fa2f0d9657d4a686257d828cd918e4.zip
CMake-393a45e2e1fa2f0d9657d4a686257d828cd918e4.tar.gz
CMake-393a45e2e1fa2f0d9657d4a686257d828cd918e4.tar.bz2
CheckFortranCompilerFlag: Add module to check Fortran flag existence
Copy the CheckCCompilerFlag module and replace 'C' with 'Fortran'. Also update the common patterns module to match some Fortran compiler messages.
Diffstat (limited to 'Modules/CMakeCheckCompilerFlagCommonPatterns.cmake')
-rw-r--r--Modules/CMakeCheckCompilerFlagCommonPatterns.cmake5
1 files changed, 3 insertions, 2 deletions
diff --git a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
index 19b2bbc..3141d60 100644
--- a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
+++ b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
@@ -21,9 +21,9 @@
macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
set(${_VAR}
- FAIL_REGEX "unrecognized .*option" # GNU
+ FAIL_REGEX "[Uu]nrecogni[sz]ed .*option" # GNU, NAG
FAIL_REGEX "unknown .*option" # Clang
- FAIL_REGEX "ignoring unknown option" # MSVC
+ FAIL_REGEX "ignoring unknown option" # MSVC, Intel
FAIL_REGEX "warning D9002" # MSVC, any lang
FAIL_REGEX "option.*not supported" # Intel
FAIL_REGEX "invalid argument .*option" # Intel
@@ -35,6 +35,7 @@ macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
FAIL_REGEX "command option .* contains an incorrect subargument" # XL
FAIL_REGEX "not supported in this configuration. ignored" # AIX
FAIL_REGEX "File with unknown suffix passed to linker" # PGI
+ FAIL_REGEX "[Uu]nknown switch" # PGI
FAIL_REGEX "WARNING: unknown flag:" # Open64
FAIL_REGEX "Incorrect command line option:" # Borland
FAIL_REGEX "Warning: illegal option" # SunStudio 12