mirror of
https://github.com/x-tools-author/x-tools.git
synced 2025-09-15 15:28:40 +08:00
chore: enable win32 execute always
This commit is contained in:
parent
c75cfd39f0
commit
ae1e539287
@ -76,22 +76,13 @@ function(x_tools_add_executable target sources)
|
|||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(x_tools_set_target_properties target)
|
function(x_tools_set_target_properties target)
|
||||||
if(${CMAKE_BUILD_TYPE} STREQUAL "Release")
|
set_target_properties(
|
||||||
set_target_properties(
|
${target}
|
||||||
${target}
|
PROPERTIES ${BUNDLE_ID_OPTION} MACOSX_BUNDLE_BUNDLE_VERSION
|
||||||
PROPERTIES ${BUNDLE_ID_OPTION} MACOSX_BUNDLE_BUNDLE_VERSION
|
${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING
|
||||||
${PROJECT_VERSION} MACOSX_BUNDLE_SHORT_VERSION_STRING
|
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE
|
||||||
${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR} MACOSX_BUNDLE
|
TRUE WIN32_EXECUTABLE
|
||||||
TRUE WIN32_EXECUTABLE
|
TRUE)
|
||||||
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()
|
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
function(x_tools_tar_target target)
|
function(x_tools_tar_target target)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user