From a00ae64f36f2ab16f2b7856bfff4e31113468e06 Mon Sep 17 00:00:00 2001 From: rtm516 Date: Thu, 12 Mar 2026 15:00:39 +0000 Subject: [PATCH] Only set WIN32_EXECUTABLE on Windows --- Minecraft.Client/CMakeLists.txt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Minecraft.Client/CMakeLists.txt b/Minecraft.Client/CMakeLists.txt index b99117138..ab845d597 100644 --- a/Minecraft.Client/CMakeLists.txt +++ b/Minecraft.Client/CMakeLists.txt @@ -21,7 +21,12 @@ set(MINECRAFT_CLIENT_SOURCES ${SOURCES_COMMON} ) -add_executable(Minecraft.Client WIN32 ${MINECRAFT_CLIENT_SOURCES}) +add_executable(Minecraft.Client ${MINECRAFT_CLIENT_SOURCES}) + +# Only define executable on windows +if(PLATFORM_NAME STREQUAL "Windows64") + set_target_properties(Minecraft.Client PROPERTIES WIN32_EXECUTABLE TRUE) +endif() target_include_directories(Minecraft.Client PRIVATE "${CMAKE_BINARY_DIR}/generated/" # This is for the generated BuildVer.h