MantisBT - CMake | ||||||||||
| View Issue Details | ||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | |||||
| 0005455 | CMake | CCMake | public | 2007-08-07 15:32 | 2007-12-14 09:31 | |||||
| Reporter | Philip Lowman | |||||||||
| Assigned To | Brad King | |||||||||
| Priority | normal | Severity | major | Reproducibility | always | |||||
| Status | closed | Resolution | fixed | |||||||
| Platform | OS | OS Version | ||||||||
| Product Version | ||||||||||
| Target Version | Fixed in Version | |||||||||
| Summary | 0005455: CMake 2.4.7 doesn't preserve LINK_FLAGS properly in VS8 projects | |||||||||
| Description | CMake 2.4.7 misparses the LINK_FLAGS option of SET_TARGET_PROPERTIES with the Visual Studio 8 generator and removes options. This problem does not exist on CMake 2.4.6 Example CMakeLists.txt: PROJECT(FOO) ADD_EXECUTABLE(foo foo.cc) SET_TARGET_PROPERTIES(foo PROPERTIES LINK_FLAGS " /NODEFAULTLIB:\"libc.lib\" /NODEFAULTLIB:\"libcmt.lib\" /NODEFAULTLIB:\"msvcrt.lib\" /NODEFAULTLIB:\"libcd.lib\" /NODEFAULTLIB:\"libcmtd.lib\" ") Screenshots of generated command lines are attached for both 2.4.6 and 2.4.7. Curiously, it appears that the only the last /NODEFAULTLIB (libcmtd.lib) gets moved out of the "Additional Options" into the "All Options". The other /NODEFAULTLIB libraries are excluded completely from the CMake generated 2.4.7 VCproj file. | |||||||||
| Steps To Reproduce | ||||||||||
| Additional Information | ||||||||||
| Tags | No tags attached. | |||||||||
| Relationships |
| |||||||||
| Attached Files | https://public.kitware.com/Bug/file/1092/cmake-2.4.7.png ![]() https://public.kitware.com/Bug/file/1093/cmake_2.4.6.png ![]() https://public.kitware.com/Bug/file/1156/vs_link_flags.patch | |||||||||
| Issue History | ||||||||||
| Date Modified | Username | Field | Change | |||||||
| 2007-08-07 15:32 | Philip Lowman | New Issue | ||||||||
| 2007-08-07 15:32 | Philip Lowman | File Added: cmake-2.4.7.png | ||||||||
| 2007-08-07 15:33 | Philip Lowman | File Added: cmake_2.4.6.png | ||||||||
| 2007-08-24 09:46 | Philip Lowman | Note Added: 0008644 | ||||||||
| 2007-08-29 13:24 | Brad King | Relationship added | related to 0004239 | |||||||
| 2007-08-29 13:30 | Brad King | Note Added: 0008741 | ||||||||
| 2007-08-29 13:36 | Brad King | Note Added: 0008743 | ||||||||
| 2007-08-29 13:57 | Brad King | Status | new => assigned | |||||||
| 2007-08-29 13:57 | Brad King | Assigned To | => Brad King | |||||||
| 2007-08-29 13:57 | Brad King | Status | assigned => confirmed | |||||||
| 2007-09-22 08:01 | Philip Lowman | File Added: vs_link_flags.patch | ||||||||
| 2007-09-22 08:05 | Philip Lowman | Note Added: 0009231 | ||||||||
| 2007-11-02 10:13 | Philip Lowman | Note Edited: 0008644 | ||||||||
| 2007-12-06 08:40 | Bill Hoffman | Note Added: 0009840 | ||||||||
| 2007-12-14 09:31 | Bill Hoffman | Status | confirmed => closed | |||||||
| 2007-12-14 09:31 | Bill Hoffman | Resolution | open => fixed | |||||||
| 2007-12-14 09:31 | Bill Hoffman | Category | => CCMake | |||||||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||