From 8c9b546cc515791ede80f68dca06e9c2daa67cdd Mon Sep 17 00:00:00 2001 From: David Sansome Date: Wed, 5 May 2010 16:56:55 +0000 Subject: [PATCH] Show the console window in debug mode on Windows --- src/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 18627386c..1a522fd52 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -396,9 +396,14 @@ if(WIN32 OR APPLE) target_link_libraries(clementine_lib qsqlite) endif(WIN32 OR APPLE) +# Show the console window in debug mode on Windows +if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") + set(CLEMENTINE-WIN32-FLAG WIN32) +endif (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") + add_executable(clementine MACOSX_BUNDLE - WIN32 + ${CLEMENTINE-WIN32-FLAG} ${CLEMENTINE-WIN32-RESOURCES} main.cpp )