MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0007476 | CMake | CMake | public | 2008-08-09 22:15 | 2008-08-10 11:03 |
Reporter | c0uch | ||||
Assigned To | |||||
Priority | normal | Severity | major | Reproducibility | always |
Status | closed | Resolution | no change required | ||
Platform | OS | OS Version | |||
Product Version | CMake-2-6 | ||||
Target Version | Fixed in Version | ||||
Summary | 0007476: CMAKE_EXE_LINKER_FLAGS can produce bad solution configuration for VS2005 and 2008 | ||||
Description | Adding the following to a basic cmake project (cmakelist.txts attached) results in the following issues: SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} " /NODEFAULTLIB:MSVCRT ") 1. If the value added (in this case " NODEFAULTLIB:MSVCRT ") does not have a blank space between the opening " and the text the linker additional commandline options entry is messed up: /STACK:10000000 /machine:I386";" /debug (a mysterious ";") 2. If 2 modifications are made: SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} " /NODEFAULTLIB:MSVCRT ") SET(CMAKE_EXE_LINKER_FLAGS ${CMAKE_EXE_LINKER_FLAGS} " /INCREMENTAL:NO ") The second one appears to be ignored completely in the resulting sln file. 3. If you print out the value of CMAKE_EXE_LINKER_FLAGS they appear to be correct: message("CMAKE_EXE_LINKER_FLAGS: " ${CMAKE_EXE_LINKER_FLAGS}) Produces: CMAKE_EXE_LINKER_FLAGS: /MANIFEST /STACK:10000000 /machine:I386 /NODEFAULTLIB:MSVCRT /INCREMENTAL:NO However, if you print it out again, in a separate cmakelists.txt file, the .sln is further modified (another ";" appears somewhere which I haven't yet been able to locate, but which causes linking to fail completely) | ||||
Steps To Reproduce | |||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | example_linker_options_fail.zip (1,813) 2008-08-09 22:15 https://public.kitware.com/Bug/file/1660/* | ||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2008-08-09 22:15 | c0uch | New Issue | |||
2008-08-09 22:15 | c0uch | File Added: example_linker_options_fail.zip | |||
2008-08-09 22:24 | c0uch | Note Added: 0012977 | |||
2008-08-10 11:03 | Bill Hoffman | Note Added: 0012978 | |||
2008-08-10 11:03 | Bill Hoffman | Status | new => closed | ||
2008-08-10 11:03 | Bill Hoffman | Resolution | open => no change required |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|