View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||
ID | Project | Category | View Status | Date Submitted | Last Update | ||||
0009516 | CMake | CMake | public | 2009-09-09 17:09 | 2009-09-17 15:34 | ||||
Reporter | dataangel | ||||||||
Assigned To | Brad King | ||||||||
Priority | normal | Severity | major | Reproducibility | always | ||||
Status | closed | Resolution | fixed | ||||||
Platform | OS | OS Version | |||||||
Product Version | CMake-2-6 | ||||||||
Target Version | Fixed in Version | ||||||||
Summary | 0009516: CHECK_COMPILER_FLAG and CHECK_CXX_COMPILER_FLAG won't detect unrecognized options with GCC | ||||||||
Description | GCC still returns a 0 (success) error code when given an unrecognized option. In order to detect if GCC didn't accept the flag, in addition to checking the exit code the resulting output text must be searched for "unrecognized option". | ||||||||
Tags | No tags attached. | ||||||||
Attached Files | |||||||||
Relationships | ||||||
|
Relationships |
Notes | |
(0017595) Brad King (manager) 2009-09-17 15:33 |
The commits below address this issue and add a test to make sure it works on other compilers too. Cleanup generic compiler check macro documentation /cvsroot/CMake/CMake/Modules/CheckCCompilerFlag.cmake,v <-- Modules/CheckCCompilerFlag.cmake new revision: 1.3; previous revision: 1.2 /cvsroot/CMake/CMake/Modules/CheckCSourceCompiles.cmake,v <-- Modules/CheckCSourceCompiles.cmake new revision: 1.19; previous revision: 1.18 /cvsroot/CMake/CMake/Modules/CheckCSourceRuns.cmake,v <-- Modules/CheckCSourceRuns.cmake new revision: 1.12; previous revision: 1.11 /cvsroot/CMake/CMake/Modules/CheckCXXCompilerFlag.cmake,v <-- Modules/CheckCXXCompilerFlag.cmake new revision: 1.2; previous revision: 1.1 /cvsroot/CMake/CMake/Modules/CheckCXXSourceCompiles.cmake,v <-- Modules/CheckCXXSourceCompiles.cmake new revision: 1.16; previous revision: 1.15 /cvsroot/CMake/CMake/Modules/CheckCXXSourceRuns.cmake,v <-- Modules/CheckCXXSourceRuns.cmake new revision: 1.8; previous revision: 1.7 Add FAIL_REGEX to CHECK_(C|CXX)_SOURCE_COMPILES /cvsroot/CMake/CMake/Modules/CheckCSourceCompiles.cmake,v <-- Modules/CheckCSourceCompiles.cmake new revision: 1.20; previous revision: 1.19 /cvsroot/CMake/CMake/Modules/CheckCXXSourceCompiles.cmake,v <-- Modules/CheckCXXSourceCompiles.cmake new revision: 1.17; previous revision: 1.16 Fix CHECK_(C|CXX)_COMPILER_FLAG for GNU and MSVC /cvsroot/CMake/CMake/Modules/CheckCCompilerFlag.cmake,v <-- Modules/CheckCCompilerFlag.cmake new revision: 1.4; previous revision: 1.3 /cvsroot/CMake/CMake/Modules/CheckCXXCompilerFlag.cmake,v <-- Modules/CheckCXXCompilerFlag.cmake new revision: 1.3; previous revision: 1.2 Test CHECK_(C|CXX)_COMPILER_FLAG macros /cvsroot/CMake/CMake/Tests/TryCompile/CMakeLists.txt,v <-- Tests/TryCompile/CMakeLists.txt new revision: 1.17; previous revision: 1.16 |
Notes |
Issue History | |||
Date Modified | Username | Field | Change |
2009-09-09 17:09 | dataangel | New Issue | |
2009-09-11 17:05 | Bill Hoffman | Status | new => assigned |
2009-09-11 17:05 | Bill Hoffman | Assigned To | => Brad King |
2009-09-17 15:33 | Brad King | Note Added: 0017595 | |
2009-09-17 15:34 | Brad King | Status | assigned => closed |
2009-09-17 15:34 | Brad King | Resolution | open => fixed |
2011-08-08 12:54 | Brad King | Relationship added | related to 0012394 |
Issue History |
Copyright © 2000 - 2018 MantisBT Team |