windows-deployqt: 调整目标在不同构建类型中是否设置 WIN32 属性

This commit is contained in:
zinface 2023-03-13 18:10:41 +08:00
parent 029cf14a10
commit 3325f2cfc5
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ if(WINDOWS_DEPLOY_QT)
set_target_properties(${PROJECT_NAME}
PROPERTIES
# WIN32 使 WinMain(某种 Windows 内部特性)
WIN32_EXECUTABLE true
WIN32_EXECUTABLE $<$<CONFIG:Debug>:FALSE>$<$<CONFIG:Release>:TRUE>
#
# ARCHIVE_OUTPUT_DIRECTORY ""
#