MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0012633 | CMake | CMake | public | 2011-12-18 14:11 | 2012-09-03 16:01 |
Reporter | hrogge | ||||
Assigned To | Brad King | ||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | OS | OS Version | |||
Product Version | CMake 2.8.6 | ||||
Target Version | CMake 2.8.8 | Fixed in Version | CMake 2.8.8 | ||
Summary | 0012633: GCC fails some flags with "is valid for C++/ObjC++ but not for C" | ||||
Description | GCC has some flags that are valid for C++, but not for C. The different warning message breaks the CHECK_C_COMPILER_FLAG macro. Suggestion: add 'FAIL_REGEX "but not for C" # GNU' to CheckCCompilerFlag.cmake | ||||
Steps To Reproduce | compile "int main(void) { return 0 };" on gcc 4.4.5 with -Wenum-compare: /usr/bin/gcc -Wenum-compare -o test.o -c test.c cc1: warning: command line option "-Wenum-compare" is valid for C++/ObjC++ but not for C | ||||
Additional Information | Combined with ADD_DEFINITIONS(-Werror) this can break the build process. The CheckCCompilerFlag does not recognize that -Wenum-compare is not available, -Werror stops the build process. | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2011-12-18 14:11 | hrogge | New Issue | |||
2011-12-19 10:55 | Brad King | Note Added: 0028009 | |||
2011-12-19 23:21 | Sean McBride | Note Added: 0028015 | |||
2011-12-21 14:50 | hrogge | Note Added: 0028029 | |||
2011-12-22 09:42 | Brad King | Note Added: 0028035 | |||
2011-12-22 09:42 | Brad King | Status | new => resolved | ||
2011-12-22 09:42 | Brad King | Resolution | open => fixed | ||
2011-12-22 09:42 | Brad King | Assigned To | => Brad King | ||
2012-04-19 15:42 | David Cole | Fixed in Version | => CMake 2.8.8 | ||
2012-04-19 15:42 | David Cole | Target Version | => CMake 2.8.8 | ||
2012-09-03 16:01 | David Cole | Note Added: 0030868 | |||
2012-09-03 16:01 | David Cole | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|