From bc3d82a17a2f03c9b5ff007570a6c08b60666573 Mon Sep 17 00:00:00 2001 From: Hombre57 Date: Thu, 13 Jul 2017 00:26:35 +0200 Subject: [PATCH] "-mwindows" now not set for Debug builds on Windows This will prevent decoupling RT from the DOS console when starting such builds. If no console is opened, Windows will open one (>>>> for Debug builds <<<<) even w/ 'Verbose=false' or w/o comand line arguments. --- rtgui/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rtgui/CMakeLists.txt b/rtgui/CMakeLists.txt index 7b5140212..923500777 100644 --- a/rtgui/CMakeLists.txt +++ b/rtgui/CMakeLists.txt @@ -224,7 +224,8 @@ add_dependencies(rth UpdateInfo) add_dependencies(rth-cli UpdateInfo) # Set executables targets properties, i.e. output filename and compile flags -if(WIN32) +# for "Debug" builds, open a console in all cases for Windows version +if((WIN32) AND NOT(UPPER_CMAKE_BUILD_TYPE STREQUAL "DEBUG")) set_target_properties(rth PROPERTIES LINK_FLAGS "-mwindows") endif() set_target_properties(rth PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS}" OUTPUT_NAME rawtherapee)