From 9d52951deadeb09ede8cdc1e441c07e1974245f2 Mon Sep 17 00:00:00 2001 From: David Sansome Date: Sun, 24 Apr 2011 17:02:26 +0000 Subject: [PATCH] Add a compile time option to show the WIN32 console even outside debug mode --- CMakeLists.txt | 4 ++++ src/CMakeLists.txt | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4d6d75aed..1ac6a3873 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -178,6 +178,10 @@ option(ENABLE_SCRIPTING_PYTHON "Enable python scripting" ON) option(ENABLE_REMOTE "Enable support for using remote controls with Clementine" OFF) option(ENABLE_BREAKPAD "Enable crash reporting" OFF) +if(WIN32) + option(ENABLE_WIN32_CONSOLE "Show the windows console even outside Debug mode" OFF) +endif(WIN32) + if(ENABLE_LIBGPOD AND LIBGPOD_FOUND) set(HAVE_LIBGPOD ON) endif(ENABLE_LIBGPOD AND LIBGPOD_FOUND) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 8496c0ebc..37e3744ba 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1057,9 +1057,9 @@ add_dependencies(clementine_lib qtsingleapplication) set(EXECUTABLE_OUTPUT_PATH ..) # Show the console window in debug mode on Windows -if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") +if (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT ENABLE_WIN32_CONSOLE) set(CLEMENTINE-WIN32-FLAG WIN32) -endif (NOT CMAKE_BUILD_TYPE STREQUAL "Debug") +endif (NOT CMAKE_BUILD_TYPE STREQUAL "Debug" AND NOT ENABLE_WIN32_CONSOLE) # resource file for windows if(WIN32)