[cmake-developers] [CMake 0011571]: Does not use EXE subsystem when building GUI application with GCC for Windows
Mantis Bug Tracker
mantis at public.kitware.com
Sat Dec 4 07:12:59 EST 2010
The following issue has been SUBMITTED.
======================================================================
http://www.cmake.org/Bug/view.php?id=11571
======================================================================
Reported By: Cheese Russian
Assigned To:
======================================================================
Project: CMake
Issue ID: 11571
Category: Modules
Reproducibility: always
Severity: minor
Priority: normal
Status: new
======================================================================
Date Submitted: 2010-12-04 07:12 EST
Last Modified: 2010-12-04 07:12 EST
======================================================================
Summary: Does not use EXE subsystem when building GUI
application with GCC for Windows
Description:
When building with GCC for Windows, in makefiles generated by CMake, there is no
instruction to set a subsystem. The default subsystem is console, when building
a console application, it does not matter. But when I make a GUI program, it
becomes console, too, and shows a console window in background when running.
For example, if user configured to use Qt with QtGui module (FindQt*.cmake), the
module should add the following option to gcc command line
(CMAKE_EXE_LINKER_FLAGS): -Wl,-subsystem,windows.
Steps to Reproduce:
FindQt(REQUIRED)
Use GCC to build an application for Win32.
Additional Information:
Workaround:
IF( WIN32 )
SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-subsystem,windows"
)
ENDIF()
======================================================================
Issue History
Date Modified Username Field Change
======================================================================
2010-12-04 07:12 Cheese Russian New Issue
======================================================================
More information about the cmake-developers
mailing list