<html xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;}
.MsoChpDefault
        {mso-style-type:export-only;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style></head><body lang=DE><div class=WordSection1><p class=MsoNormal>Hi,</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I like to contribute code for issue #0015146. I had issues to get the /MANIFESTUAC flag (Microsoft C/C++ Compiler) working in CMake. I saw that it is a known bug which is not resolved yet since 2014. So I tried my best to solve the issue.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>What I did: I introduced a new flag in cmIDEFlagTable.h called RegularExpression, and made some changes in cmIDEOptions::CheckFlagTable and the cmVS*LinkFlagTable.h files. These changes now allow matching regular expressions to complex flags and extracting the relevant values out of it to finally map them to the according IDE XML variables.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Example:</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>{"UACUIAccess", "MANIFESTUAC:level=([a-zA-Z]+) uiAccess=([a-zA-Z]+)$", "", "\\2", cmVS7FlagTable::RegularExpression},</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>If the flag matches with the second argument, the subexpressions get extracted from which the second one will be mapped to variable UACUIAccess.</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Since this is my first contribution I attached it as a patch (master @ 9cdb37e9175b2e3c6367bc4863fda0404cb1c3a2).</p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Regards,</p><p class=MsoNormal>Sebastian<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><span style='font-size:12.0pt;font-family:"Times New Roman",serif'><o:p> </o:p></span></p></div></body></html>