summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2012-01-09 19:08:56 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2012-01-09 19:08:56 (GMT)
commit4fa5a7c845305cc23e184f1cc644af27475bcf04 (patch)
treea6c518de6425da570031b4e3c901bbd4114b96bc /Modules
parent9b2299b8c20a22673485b55be1a991fe22e8e5a0 (diff)
parent646cf9193213367b833b7681c3ad7beed1ea946c (diff)
downloadCMake-4fa5a7c845305cc23e184f1cc644af27475bcf04.zip
CMake-4fa5a7c845305cc23e184f1cc644af27475bcf04.tar.gz
CMake-4fa5a7c845305cc23e184f1cc644af27475bcf04.tar.bz2
Merge topic 'CheckCCompilerFlag-issue-12633'
646cf91 CheckCCompilerFlag: Generalize "but not for C" case (#12633)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/CheckCCompilerFlag.cmake5
1 files changed, 2 insertions, 3 deletions
diff --git a/Modules/CheckCCompilerFlag.cmake b/Modules/CheckCCompilerFlag.cmake
index ec0a773..5380f4d 100644
--- a/Modules/CheckCCompilerFlag.cmake
+++ b/Modules/CheckCCompilerFlag.cmake
@@ -7,7 +7,7 @@
# that can modify the build.
#=============================================================================
-# Copyright 2006-2010 Kitware, Inc.
+# Copyright 2006-2011 Kitware, Inc.
# Copyright 2006 Alexander Neundorf <neundorf@kde.org>
#
# Distributed under the OSI-approved BSD License (the "License");
@@ -27,8 +27,7 @@ MACRO (CHECK_C_COMPILER_FLAG _FLAG _RESULT)
SET(CMAKE_REQUIRED_DEFINITIONS "${_FLAG}")
CHECK_C_SOURCE_COMPILES("int main(void) { return 0; }" ${_RESULT}
# Some compilers do not fail with a bad flag
- FAIL_REGEX "warning: command line option .* is valid for .* but not for C"
- # Apple gcc
+ FAIL_REGEX "command line option .* is valid for .* but not for C" # GNU
FAIL_REGEX "unrecognized .*option" # GNU
FAIL_REGEX "unknown .*option" # Clang
FAIL_REGEX "ignoring unknown option" # MSVC