View Issue Details [ Jump to Notes ] | [ Print ] |
ID | Project | Category | View Status | Date Submitted | Last Update |
0015096 | CMake | CMake | public | 2014-08-18 17:14 | 2015-01-05 08:39 |
|
Reporter | RolandSchulz | |
Assigned To | Brad King | |
Priority | normal | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | |
Platform | | OS | | OS Version | |
Product Version | | |
Target Version | CMake 3.1 | Fixed in Version | CMake 3.1 | |
|
Summary | 0015096: Incorrect compiler flag not detected for Intel |
Description | Checking e.g. -Wno-unused-parameter with CheckCXXCompilerFlag for Intel on Windows doesn't detect that the flag is invalid. The attached patch fixes it by hadding the required patern. |
Tags | No tags attached. |
|
Attached Files | patch-cmake-icc-pattern [^] (808 bytes) 2014-08-18 17:14 [Show Content] [Hide Content]diff --git a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
index aa7d96a..19b2bbc 100644
--- a/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
+++ b/Modules/CMakeCheckCompilerFlagCommonPatterns.cmake
@@ -28,6 +28,7 @@ macro (CHECK_COMPILER_FLAG_COMMON_PATTERNS _VAR)
FAIL_REGEX "option.*not supported" # Intel
FAIL_REGEX "invalid argument .*option" # Intel
FAIL_REGEX "ignoring option .*argument required" # Intel
+ FAIL_REGEX "ignoring option .*argument is of wrong type" # Intel
FAIL_REGEX "[Uu]nknown option" # HP
FAIL_REGEX "[Ww]arning: [Oo]ption" # SunPro
FAIL_REGEX "command option .* is not recognized" # XL
|
|