View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011571CMakeModulespublic2010-12-04 07:122010-12-06 14:43
ReporterCheese Russian 
Assigned ToBrad King 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionno change required 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionFixed in Version 
Summary0011571: Does not use EXE subsystem when building GUI application with GCC for Windows
DescriptionWhen 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 ReproduceFindQt(REQUIRED)

Use GCC to build an application for Win32.
Additional InformationWorkaround:

IF( WIN32 )
  SET( CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-subsystem,windows" )
ENDIF()
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0023717)
Rolf Eike Beer (developer)
2010-12-04 10:50

Did you add the WIN32 flag to your ADD_EXECUTABLE?
(0023724)
Cheese Russian (reporter)
2010-12-06 01:33

Oh, it's my fail. I'm sorry.

Please close the issue.

 Issue History
Date Modified Username Field Change
2010-12-04 07:12 Cheese Russian New Issue
2010-12-04 10:50 Rolf Eike Beer Note Added: 0023717
2010-12-06 01:33 Cheese Russian Note Added: 0023724
2010-12-06 14:43 Brad King Status new => closed
2010-12-06 14:43 Brad King Assigned To => Brad King
2010-12-06 14:43 Brad King Resolution open => no change required


Copyright © 2000 - 2018 MantisBT Team