回滚动态UAC

This commit is contained in:
2023-11-13 22:52:40 +08:00
parent 2594f85f25
commit b6f0728e2c
7 changed files with 12 additions and 93 deletions

View File

@ -16,6 +16,8 @@ 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})