Skip to content

Commit

Permalink
Remove ugly console on WIN32 when not debugging
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6676 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
homann committed Feb 22, 2007
1 parent 54eb1ad commit 7733bf3
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions src/gui/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,16 @@ IF (WIN32)

ENDIF (WIN32)


ADD_EXECUTABLE(qgis ${QGIS_APP_SRCS})
# Remove console if on WIN32 and not Debug.
IF (WIN32)
IF (CMAKE_BUILD_TYPE MATCHES Debug)
ADD_EXECUTABLE(qgis ${QGIS_APP_SRCS})
ELSE (CMAKE_BUILD_TYPE MATCHES Debug)
ADD_EXECUTABLE(qgis WIN32 ${QGIS_APP_SRCS})
ENDIF (CMAKE_BUILD_TYPE MATCHES Debug)
ELSE (WIN32)
ADD_EXECUTABLE(qgis ${QGIS_APP_SRCS})
ENDIF (WIN32)

TARGET_LINK_LIBRARIES(qgis
${QT_LIBRARIES}
Expand Down

0 comments on commit 7733bf3

Please sign in to comment.