[CMake] vs2010 MANIFESTUAC not handled correctly

Aaron_Wright at selinc.com Aaron_Wright at selinc.com
Tue Mar 15 11:23:55 EDT 2011


I'm trying to use this in my CMake file for a simple executable:

SET_TARGET_PROPERTIES(
        your_executable 
        PROPERTIES LINK_FLAGS "/MANIFESTUAC:\"level='requireAdministrator' 
uiAccess='false'\"")

This worked in vs2008, but not in vs2010. The project contains:

<UACUIAccess>level='requireAdministrator' uiAccess='false'</UACUIAccess>

But needs:

<UACExecutionLevel>requireAdministrator</UACExecutionLevel>
<UACUIAccess>false</UACUIAccess>

Am I using this the correct way, or is there a way to do it to get the 
desired results?
---
Aaron Wright


More information about the CMake mailing list