MantisBT - CMake | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0014516 | CMake | (No Category) | public | 2013-10-28 10:31 | 2016-06-10 14:31 | |||||
| Reporter | Mathieu Malaterre | |||||||||
| Assigned To | Kitware Robot | |||||||||
| Priority | normal | Severity | feature | Reproducibility | have not tried | |||||
| Status | closed | Resolution | moved | |||||||
| Platform | OS | OS Version | ||||||||
| Product Version | ||||||||||
| Target Version | Fixed in Version | |||||||||
| Summary | 0014516: Map LANGUAGE source file property to compiler language flag | |||||||||
| Description | CMake seems to assumes that `gcc` calls the C compiler while `g++` calls the C++ compiler. Well this is not entirely true: $ cat foo.C int bar() { return 42; } $ gcc -o foo.o -c foo.C $ nm foo.o 0000000000000000 T _Z3barv U __gxx_personality_v0 Compared to: $ gcc -x c -o foo.o -c foo.C $ nm foo.o 0000000000000000 T bar Which means that the following CMake code is not working (at least on debian+gcc compiler because of implicit gcc behavior treating capital C file extension): $ cat CMakeLists.txt project(t) add_library(foo foo.C) set_source_files_properties(foo.C PROPERTIES LANGUAGE C) set_target_properties(foo PROPERTIES LINKER_LANGUAGE C) | |||||||||
| Steps To Reproduce | ||||||||||
| Additional Information | ||||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | https://public.kitware.com/Bug/file/5375/bug728108.patch | |||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2013-10-28 10:31 | Mathieu Malaterre | New Issue | ||||||||
| 2015-02-05 06:45 | Mathieu Malaterre | File Added: bug728108.patch | ||||||||
| 2015-02-05 06:45 | Mathieu Malaterre | Note Added: 0037919 | ||||||||
| 2015-03-25 10:52 | Brad King | Severity | minor => feature | |||||||
| 2015-03-25 10:52 | Brad King | Summary | set_source_files_properties( ... C) not working => Map LANGUAGE source file property to compiler language flag | |||||||
| 2015-03-25 10:53 | Brad King | Note Added: 0038290 | ||||||||
| 2015-03-25 10:55 | Brad King | Note Added: 0038291 | ||||||||
| 2015-03-25 10:58 | Mathieu Malaterre | Note Added: 0038292 | ||||||||
| 2015-03-25 11:00 | Brad King | Relationship added | related to 0015438 | |||||||
| 2016-06-10 14:29 | Kitware Robot | Note Added: 0042404 | ||||||||
| 2016-06-10 14:29 | Kitware Robot | Status | new => resolved | |||||||
| 2016-06-10 14:29 | Kitware Robot | Resolution | open => moved | |||||||
| 2016-06-10 14:29 | Kitware Robot | Assigned To | => Kitware Robot | |||||||
| 2016-06-10 14:31 | Kitware Robot | Status | resolved => closed | |||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||