chore: enable win32 execute always

This commit is contained in:
x-tools 2024-05-01 09:32:58 +08:00
parent c75cfd39f0
commit ae1e539287

View File

@ -76,22 +76,13 @@ function(x_tools_add_executable target sources)
endfunction()
function(x_tools_set_target_properties target)
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
set_target_properties(
${target}
PROPERTIES ${BUNDLE_ID_OPTION} MACOSX_BUNDLE_BUNDLE_VERSION
${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE
TRUE WIN32_EXECUTABLE
TRUE)
else()
set_target_properties(
${target}
PROPERTIES ${BUNDLE_ID_OPTION} MACOSX_BUNDLE_BUNDLE_VERSION
${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE
TRUE)
endif()
set_target_properties(
${target}
PROPERTIES ${BUNDLE_ID_OPTION} MACOSX_BUNDLE_BUNDLE_VERSION
${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE
TRUE WIN32_EXECUTABLE
TRUE)
endfunction()
function(x_tools_tar_target target)