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)