[cmake-developers] [CMake 0012566]: REGRESSION: CMake suppresses /SUBSYSTEM linker flag
Mantis Bug Tracker
mantis at public.kitware.com
Wed Nov 9 19:41:45 EST 2011
The following issue has been SUBMITTED.
======================================================================
http://public.kitware.com/Bug/view.php?id=12566
======================================================================
Reported By: Gili
Assigned To:
======================================================================
Project: CMake
Issue ID: 12566
Category: CMake
Reproducibility: always
Severity: major
Priority: normal
Status: new
======================================================================
Date Submitted: 2011-11-09 19:41 EST
Last Modified: 2011-11-09 19:41 EST
======================================================================
Summary: REGRESSION: CMake suppresses /SUBSYSTEM linker flag
Description:
Some users wish to use the console subsystem for debug builds and windows
subsystem for release builds. http://www.cmake.org/Wiki/VSConfigSpecificSettings
provides a solution that used to work but seems to have gotten broken in recent
releases.
http://public.kitware.com/Bug/view.php?id=11171 contains a patch that fixes this
bug (by reversing the order in which manual linker flags and WIN32_EXECUTABLE
are processed). Please apply
http://public.kitware.com/Bug/file_download.php?file_id=3459&type=bug
Steps to Reproduce:
1. Paste http://www.cmake.org/Wiki/VSConfigSpecificSettings into CMakeFiles.txt
2. Build project under Visual Studio 2010 debug and release builds
3. Notice how the /SUBSYSTEM linker flag is being ignored
Additional Information:
Ideally we should be able to set SUBSYSTEM directly instead of specifying
LINK_FLAGS that show up under "Additional Options". Please consider fixing this
separately as an feature request. Again, though, users should be able to
configure different SUBSYSTEMS for different configurations (debug/release/etc).
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2011-11-09 19:41 Gili New Issue
======================================================================
More information about the cmake-developers
mailing list