mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-15 18:58:55 +01:00
Add a compile time option to show the WIN32 console even outside debug mode
This commit is contained in:
parent
0b2332cbd4
commit
9d52951dea
@ -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_REMOTE "Enable support for using remote controls with Clementine" OFF)
|
||||||
option(ENABLE_BREAKPAD "Enable crash reporting" 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)
|
if(ENABLE_LIBGPOD AND LIBGPOD_FOUND)
|
||||||
set(HAVE_LIBGPOD ON)
|
set(HAVE_LIBGPOD ON)
|
||||||
endif(ENABLE_LIBGPOD AND LIBGPOD_FOUND)
|
endif(ENABLE_LIBGPOD AND LIBGPOD_FOUND)
|
||||||
|
@ -1057,9 +1057,9 @@ add_dependencies(clementine_lib qtsingleapplication)
|
|||||||
set(EXECUTABLE_OUTPUT_PATH ..)
|
set(EXECUTABLE_OUTPUT_PATH ..)
|
||||||
|
|
||||||
# Show the console window in debug mode on Windows
|
# 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)
|
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
|
# resource file for windows
|
||||||
if(WIN32)
|
if(WIN32)
|
||||||
|
Loading…
Reference in New Issue
Block a user