View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013294CMakeModulespublic2012-06-12 12:322012-11-05 14:33
ReporterMatthias Kretz 
Assigned ToBrad King 
PrioritynormalSeverityfeatureReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.7 
Target VersionCMake 2.8.9Fixed in VersionCMake 2.8.9 
Summary0013294: patch to CheckC(XX)CompilerFlag.cmake to match ICC output
DescriptionThe Intel compiler reports #10159 if you pass "-std=c++11", which it doesn't support yet.

diff --git a/cmake/CheckCCompilerFlag.cmake b/cmake/CheckCCompilerFlag.cmake
index 9e698b2..3c904dd 100644
--- a/cmake/CheckCCompilerFlag.cmake
+++ b/cmake/CheckCCompilerFlag.cmake
@@ -36,6 +36,7 @@ MACRO (CHECK_C_COMPILER_FLAG _FLAG _RESULT)
      FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro
      FAIL_REGEX "command option .* is not recognized" # XL
      FAIL_REGEX "WARNING: unknown flag:" # Open64
+ FAIL_REGEX " #10159: " # ICC
      )
    SET (CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}")
 ENDMACRO (CHECK_C_COMPILER_FLAG)
diff --git a/cmake/CheckCXXCompilerFlag.cmake b/cmake/CheckCXXCompilerFlag.cmake
index b016cae..fccc97b 100644
--- a/cmake/CheckCXXCompilerFlag.cmake
+++ b/cmake/CheckCXXCompilerFlag.cmake
@@ -36,6 +36,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 "WARNING: unknown flag:" # Open64
+ FAIL_REGEX " #10159: " # ICC
      )
    SET (CMAKE_REQUIRED_DEFINITIONS "${SAFE_CMAKE_REQUIRED_DEFINITIONS}")
 ENDMACRO (CHECK_CXX_COMPILER_FLAG)
Steps To Reproducecheck_cxx_compiler_flag("-std=bogus" test)

test should be FALSE
TagsNo tags attached.
Attached Files

 Relationships
duplicate of 0012576closedRolf Eike Beer CHECK_C_COMPILER_FLAG is inflexible for FAIL_REGEX 

  Notes
(0029666)
Brad King (manager)
2012-06-12 13:24

What version of the Intel compiler is this and on what platform?
What is the full output from the compiler?
(0029667)
Matthias Kretz (reporter)
2012-06-12 14:43

ICC version is 12.1.3 20120212
The full output is: "command line warning #10159: invalid argument for option '-std'"
(0029668)
Matthias Kretz (reporter)
2012-06-12 14:43

ah sorry, Linux. More specifically Kubuntu 12.04.
(0029672)
Brad King (manager)
2012-06-12 16:40

This case is handled already by a change for issue 0012576:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=f621ead8 [^]
(0031451)
David Cole (manager)
2012-11-05 14:33

Closing resolved issues that have not been updated in more than 4 months.

 Issue History
Date Modified Username Field Change
2012-06-12 12:32 Matthias Kretz New Issue
2012-06-12 13:24 Brad King Note Added: 0029666
2012-06-12 14:43 Matthias Kretz Note Added: 0029667
2012-06-12 14:43 Matthias Kretz Note Added: 0029668
2012-06-12 16:39 Brad King Relationship added duplicate of 0012576
2012-06-12 16:40 Brad King Note Added: 0029672
2012-06-12 16:40 Brad King Assigned To => Brad King
2012-06-12 16:40 Brad King Status new => resolved
2012-06-12 16:40 Brad King Resolution open => fixed
2012-06-12 16:40 Brad King Fixed in Version => CMake 2.8.9
2012-06-12 16:40 Brad King Target Version => CMake 2.8.9
2012-11-05 14:33 David Cole Note Added: 0031451
2012-11-05 14:33 David Cole Status resolved => closed


Copyright © 2000 - 2018 MantisBT Team