summaryrefslogtreecommitdiffstats
path: root/Modules/CheckCXXCompilerFlag.cmake
diff options
context:
space:
mode:
authorStephen Kelly <steveire@gmail.com>2011-08-24 17:43:04 (GMT)
committerStephen Kelly <steveire@gmail.com>2011-08-24 17:43:04 (GMT)
commit89108b99eca60cfa71cee9727f3af052f5b9da4c (patch)
tree15a352959dfe5e7950131bd9f62c605ebbe58766 /Modules/CheckCXXCompilerFlag.cmake
parente0cc024dc90c74ff504995ce9ccd3671f9bf3db2 (diff)
downloadCMake-89108b99eca60cfa71cee9727f3af052f5b9da4c.zip
CMake-89108b99eca60cfa71cee9727f3af052f5b9da4c.tar.gz
CMake-89108b99eca60cfa71cee9727f3af052f5b9da4c.tar.bz2
Look for errors reported by PGI too.
Diffstat (limited to 'Modules/CheckCXXCompilerFlag.cmake')
-rw-r--r--Modules/CheckCXXCompilerFlag.cmake1
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/CheckCXXCompilerFlag.cmake b/Modules/CheckCXXCompilerFlag.cmake
index 91008c3..7785148 100644
--- a/Modules/CheckCXXCompilerFlag.cmake
+++ b/Modules/CheckCXXCompilerFlag.cmake
@@ -34,6 +34,7 @@ MACRO (CHECK_CXX_COMPILER_FLAG _FLAG _RESULT)
FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro
FAIL_REGEX "command option .* is not recognized" # XL
FAIL_REGEX "not supported in this configuration; ignored" # AIX
+ FAIL_REGEX "File with unknown suffix passed to linker" # PGI
)
SET (CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}")
ENDMACRO (CHECK_CXX_COMPILER_FLAG)