diff options
author | Matthias Kretz <kretz@kde.org> | 2012-02-12 09:42:54 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2012-02-12 09:42:54 (GMT) |
commit | 9b4e4c92aeae15f58438e3bb9846242daafcfc9c (patch) | |
tree | cd941254164bb493196f65d6eea2cb51e019d732 /Modules/CheckCCompilerFlag.cmake | |
parent | 62952bc9b451b2b658c20756fc4c714945d84b45 (diff) | |
download | CMake-9b4e4c92aeae15f58438e3bb9846242daafcfc9c.zip CMake-9b4e4c92aeae15f58438e3bb9846242daafcfc9c.tar.gz CMake-9b4e4c92aeae15f58438e3bb9846242daafcfc9c.tar.bz2 |
Improve checks for Open64 and g++ incompatible flags (#12119)
Diffstat (limited to 'Modules/CheckCCompilerFlag.cmake')
-rw-r--r-- | Modules/CheckCCompilerFlag.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Modules/CheckCCompilerFlag.cmake b/Modules/CheckCCompilerFlag.cmake index 5380f4d..3618bdf 100644 --- a/Modules/CheckCCompilerFlag.cmake +++ b/Modules/CheckCCompilerFlag.cmake @@ -9,6 +9,7 @@ #============================================================================= # Copyright 2006-2011 Kitware, Inc. # Copyright 2006 Alexander Neundorf <neundorf@kde.org> +# Copyright 2011 Matthias Kretz <kretz@kde.org> # # Distributed under the OSI-approved BSD License (the "License"); # see accompanying file Copyright.txt for details. @@ -35,6 +36,7 @@ MACRO (CHECK_C_COMPILER_FLAG _FLAG _RESULT) FAIL_REGEX "[Uu]nknown option" # HP FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro FAIL_REGEX "command option .* is not recognized" # XL + FAIL_REGEX "WARNING: unknown flag:" # Open64 ) SET (CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}") ENDMACRO (CHECK_C_COMPILER_FLAG) |