Răsfoiți Sursa

Look for errors reported by PGI too.

Stephen Kelly 14 ani în urmă
părinte
comite
89108b99ec
1 a modificat fișierele cu 1 adăugiri și 0 ștergeri
  1. 1 0
      Modules/CheckCXXCompilerFlag.cmake

+ 1 - 0
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)