summaryrefslogtreecommitdiffstats
path: root/Modules/GenerateExportHeader.cmake
diff options
context:
space:
mode:
authorRolf Eike Beer <eike@sf-mail.de>2012-02-24 16:13:22 (GMT)
committerRolf Eike Beer <eike@sf-mail.de>2012-02-24 16:13:22 (GMT)
commit4412fc0890ab4081432721b7578f9893f89406fd (patch)
tree2d04516fda46189409eeeebfaad4f2d1790b9fd8 /Modules/GenerateExportHeader.cmake
parent2437b40933bd8377815a51a8154a81d3a70dc0fc (diff)
downloadCMake-4412fc0890ab4081432721b7578f9893f89406fd.zip
CMake-4412fc0890ab4081432721b7578f9893f89406fd.tar.gz
CMake-4412fc0890ab4081432721b7578f9893f89406fd.tar.bz2
GenerateExportHeader: remove unneeded code
These expressions check for command line arguments unsupported by the compiler. We don't pass any custom flags here anyway so this isn't needed.
Diffstat (limited to 'Modules/GenerateExportHeader.cmake')
-rw-r--r--Modules/GenerateExportHeader.cmake7
1 files changed, 0 insertions, 7 deletions
diff --git a/Modules/GenerateExportHeader.cmake b/Modules/GenerateExportHeader.cmake
index f3f61f6..e1dcb51 100644
--- a/Modules/GenerateExportHeader.cmake
+++ b/Modules/GenerateExportHeader.cmake
@@ -149,13 +149,6 @@ include(CheckCXXCompilerFlag)
macro(_check_cxx_compiler_attribute _ATTRIBUTE _RESULT)
check_cxx_source_compiles("${_ATTRIBUTE} int somefunc() { return 0; }
int main() { return somefunc();}" ${_RESULT}
- # Some compilers do not fail with a bad flag
- FAIL_REGEX "unrecognized .*option" # GNU
- FAIL_REGEX "ignoring unknown option" # MSVC
- FAIL_REGEX "warning D9002" # MSVC, any lang
- FAIL_REGEX "[Uu]nknown option" # HP
- FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro
- FAIL_REGEX "command option .* is not recognized" # XL
)
endmacro()