From 066ce6ac7034958dc5dd33c14af0ade99a5bc8b6 Mon Sep 17 00:00:00 2001 From: Guillaume Jacquemin Date: Sun, 29 Oct 2023 15:45:22 +0100 Subject: [PATCH] CMakeLists: only set the WIN32 property in release mode. I can't find the setting that allows CLion to capture stdout when running normally anymore, so this is the next best thing. --- src/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index b13fe3d..eebfbe4 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -43,7 +43,7 @@ if(CORRADE_TARGET_WINDOWS) set(SAVETOOL_RC_FILE resource.rc) endif() -add_executable(MassBuilderSaveTool WIN32 +add_executable(MassBuilderSaveTool main.cpp SaveTool/SaveTool.h SaveTool/SaveTool.cpp @@ -109,6 +109,10 @@ add_executable(MassBuilderSaveTool WIN32 ${Assets} ) +if(CORRADE_TARGET_WINDOWS) + set_target_properties(${PROJECT_NAME} PROPERTIES WIN32_EXECUTABLE $) +endif() + if(CMAKE_BUILD_TYPE STREQUAL Debug) target_compile_definitions(Logger PRIVATE SAVETOOL_DEBUG_BUILD) target_compile_definitions(MassBuilderSaveTool PRIVATE SAVETOOL_DEBUG_BUILD)