Skip to content

Commit 7733bf3

Browse files
author
homann
committed
Remove ugly console on WIN32 when not debugging
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6676 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 54eb1ad commit 7733bf3

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/gui/CMakeLists.txt

+10-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,16 @@ IF (WIN32)
3232

3333
ENDIF (WIN32)
3434

35-
36-
ADD_EXECUTABLE(qgis ${QGIS_APP_SRCS})
35+
# Remove console if on WIN32 and not Debug.
36+
IF (WIN32)
37+
IF (CMAKE_BUILD_TYPE MATCHES Debug)
38+
ADD_EXECUTABLE(qgis ${QGIS_APP_SRCS})
39+
ELSE (CMAKE_BUILD_TYPE MATCHES Debug)
40+
ADD_EXECUTABLE(qgis WIN32 ${QGIS_APP_SRCS})
41+
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug)
42+
ELSE (WIN32)
43+
ADD_EXECUTABLE(qgis ${QGIS_APP_SRCS})
44+
ENDIF (WIN32)
3745

3846
TARGET_LINK_LIBRARIES(qgis
3947
${QT_LIBRARIES}

0 commit comments

Comments
 (0)