MantisBT - CMake | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0014326 | CMake | (No Category) | public | 2013-07-31 08:02 | 2013-12-02 08:51 |
Reporter | Soeren Textor | ||||
Assigned To | Brad King | ||||
Priority | high | Severity | minor | Reproducibility | always |
Status | closed | Resolution | fixed | ||
Platform | Windows | OS | Windows | OS Version | 7 |
Product Version | CMake 2.8.11.2 | ||||
Target Version | CMake 2.8.12 | Fixed in Version | CMake 2.8.12 | ||
Summary | 0014326: VS2012 generator ignores /SUBSYSTEM:WNDOWS | ||||
Description | We define for all Win and MFC projects the Subystem with "/SUBSYSTEM:WINDOWS". This works very well for VS2003/2005 and 2008 (2010 we did not try). But for VS2012 this flag is ignored by cmake. Only at add_executable( MY_TARGET WIN32 ${MY_files} ) we obtain the correct flag. Otherwise we find /CONSOLE:CONSOLE"5,01 inside the link options... | ||||
Steps To Reproduce | first we add the link option with: set_target_properties( MY_TARGET PROPERTIES LINK_FLAGS_DEBUG "/SUBSYSTEM:WINDOWS") then we set set(CMAKE_MFC_FLAG 1) #1 for static the static MFC library and add_library( ${project_name} SHARED ${_files} ) | ||||
Additional Information | the result in the vcxproj is: <subsystem>console</subsystem> At VS2008 we have something like: AdditionalOptions=" /machine:X86 /debug /swaprun:net /LIBPATH:E:/DitecLibs/Lib nafxcwd.lib /SUBSYSTEM:WINDOWS" and that works fine. I think the parser somehow ignores the SUBSYSTEM command. Is that the point? | ||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2013-07-31 08:02 | Soeren Textor | New Issue | |||
2013-07-31 09:11 | Brad King | Note Added: 0033631 | |||
2013-07-31 09:21 | Soeren Textor | Note Added: 0033632 | |||
2013-07-31 09:27 | Soeren Textor | Note Added: 0033633 | |||
2013-07-31 09:57 | Brad King | Note Added: 0033635 | |||
2013-07-31 09:57 | Brad King | Status | new => backlog | ||
2013-07-31 10:13 | Brad King | Note Added: 0033636 | |||
2013-07-31 10:19 | Soeren Textor | Note Added: 0033637 | |||
2013-07-31 10:23 | Brad King | Note Added: 0033638 | |||
2013-07-31 10:23 | Brad King | Assigned To | => Brad King | ||
2013-07-31 10:23 | Brad King | Status | backlog => resolved | ||
2013-07-31 10:23 | Brad King | Resolution | open => fixed | ||
2013-07-31 10:23 | Brad King | Fixed in Version | => CMake 2.8.12 | ||
2013-07-31 10:23 | Brad King | Target Version | => CMake 2.8.12 | ||
2013-12-02 08:51 | Robert Maynard | Note Added: 0034661 | |||
2013-12-02 08:51 | Robert Maynard | Status | resolved => closed |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|