MantisBT - CMake | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0011571 | CMake | Modules | public | 2010-12-04 07:12 | 2010-12-06 14:43 |
| Reporter | Cheese Russian | ||||
| Assigned To | Brad King | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | no change required | ||
| Platform | OS | OS Version | |||
| Product Version | CMake-2-8 | ||||
| Target Version | Fixed in Version | ||||
| Summary | 0011571: 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() | ||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| 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 | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||