使用新的方法申请UAC

This commit is contained in:
2023-11-06 22:23:06 +08:00
parent 1f68ad8ded
commit 403840ef12
7 changed files with 65 additions and 7 deletions

View File

@ -16,9 +16,6 @@ add_executable(${BINARY_NAME} WIN32
"runner.exe.manifest"
)
SET_TARGET_PROPERTIES(${BINARY_NAME} PROPERTIES LINK_FLAGS "/MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\" /SUBSYSTEM:WINDOWS")
# Apply the standard set of build settings. This can be removed for applications
# that need different build settings.
apply_standard_settings(${BINARY_NAME})