MantisBT - CMake
View Issue Details
0015146CMakeCMakepublic2014-09-10 06:582016-06-10 14:31
Soeren Textor 
Kitware Robot 
highmajoralways
closedmoved 
CMake 3.0.1 
 
0015146: MANIFESTUAC-Link flag results in vcxproj errors
Adding the UAC flag like

set_target_properties( XXX PROPERTIES LINK_FLAGS_DEBUG "MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\"" )

Therefore we obtain inside the vcxproj:

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

Instead of:
<EnableUAC>true</EnableUAC>
<UACUIAccess>false</UACUIAccess>
<UACExecutionLevel>RequireAdministrator</UACExecutionLevel>

what results in link errors
Adding the UAC flag like

set_target_properties( XXX PROPERTIES LINK_FLAGS_DEBUG "MANIFESTUAC:\"level='requireAdministrator' uiAccess='false'\"" )

and build a VS2013 project file

I know there is antoher wa of adding link flags since 3.0, but we also use camke 2.8 and there it's teh same problem
No tags attached.
Issue History
2014-09-10 06:58Soeren TextorNew Issue
2014-09-10 09:15Brad KingNote Added: 0036772
2014-09-10 09:18Soeren TextorNote Added: 0036773
2014-09-10 09:18Soeren TextorNote Edited: 0036773bug_revision_view_page.php?bugnote_id=36773#r1564
2014-09-10 09:29Brad KingNote Added: 0036774
2016-03-21 10:30Brad KingNote Added: 0040736
2016-06-10 14:29Kitware RobotNote Added: 0042627
2016-06-10 14:29Kitware RobotStatusnew => resolved
2016-06-10 14:29Kitware RobotResolutionopen => moved
2016-06-10 14:29Kitware RobotAssigned To => Kitware Robot
2016-06-10 14:31Kitware RobotStatusresolved => closed

Notes
(0036772)
Brad King   
2014-09-10 09:15   
Take a look at the flag tables in Source/cmVS*LinkFlagTable.h and the code in the cmIDEOptions::CheckFlagTable method in
Source/cmIDEOptions.cxx. It looks like some special handling will be needed to parse multiple values out of the MANIFESTUAC: option.
(0036773)
Soeren Textor   
2014-09-10 09:18   
Yes, thus I changed it to separate links flag additions:
/MANIFESTUAC:NO
/level='requireAdministrator'
/uiAccess='false'

but at least at 2.8.12 it wrote

<UACUIAccess>NO</UACUIAccess>
instead of

<UACUIAccess>false</UACUIAccess>

into my vcxproj-file :(

(0036774)
Brad King   
2014-09-10 09:29   
Please try a nightly binary from:

 http://www.cmake.org/files/dev/?C=M;O=D [^]

I think that was fixed in post-3.0 development by:

 VS: Fix /MANIFESTUAC:NO linker option mapping
 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=9c7f234c [^]
(0040736)
Brad King   
2016-03-21 10:30   
A patch is under discussion here:

 Contribution for Issue 0015146
 http://thread.gmane.org/gmane.comp.programming.tools.cmake.devel/16058 [^]
(0042627)
Kitware Robot   
2016-06-10 14:29   
Resolving issue as `moved`.

This issue tracker is no longer used. Further discussion of this issue may take place in the current CMake Issues page linked in the banner at the top of this page.