Only set WIN32_EXECUTABLE on Windows

This commit is contained in:
rtm516 2026-03-12 15:00:39 +00:00
parent 51cbf16047
commit a00ae64f36
No known key found for this signature in database
GPG key ID: 331715B8B007C67A

View file

@ -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