<html><head><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}

p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst, p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle, p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head><body><div data-externalstyle="false" dir="ltr" style="font-family:Calibri,'Segoe UI',Meiryo,'Microsoft YaHei UI','Microsoft JhengHei UI','Malgun Gothic','Khmer UI','Nirmala UI',Tunga,'Lao UI',Ebrima,sans-serif;font-size:12pt;"><div>Try:</div><div>&nbsp;</div><div>&nbsp;&nbsp;&nbsp; cmake -D "DOXYGEN_TAGFILES:STRING=C:/bar/somevalue=C:/foo/another" -P configure_file.cmake</div><div>&nbsp;</div><div>Because of the&nbsp;“:TYPE” parsing,&nbsp;“:” after the = sign can sometimes be misinterpreted by the regex code used to parse these out...</div><div>&nbsp;</div><div>&nbsp;</div><div>HTH,</div><div>David</div><div>&nbsp;</div><div data-signatureblock="true">&nbsp;</div><div style="padding-top: 5px; border-top-color: rgb(229, 229, 229); border-top-width: 1px; border-top-style: solid;"><div><font face="Calibri, 'Segoe UI', Meiryo, 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', 'Khmer UI', 'Nirmala UI', Tunga, 'Lao UI', Ebrima, sans-serif" style='line-height: 15pt; letter-spacing: 0.02em; font-family: Calibri, "Segoe UI", Meiryo, "Microsoft YaHei UI", "Microsoft JhengHei UI", "Malgun Gothic", "Khmer UI", "Nirmala UI", Tunga, "Lao UI", Ebrima, sans-serif; font-size: 11pt;'><b>From:</b>&nbsp;Robert Dailey<br><b>Sent:</b>&nbsp;‎Thursday‎, ‎April‎ ‎11‎, ‎2013 ‎10‎:‎02‎ ‎AM<br><b>To:</b>&nbsp;CMake</font></div></div><div>&nbsp;</div>Actually I did a bit more testing on this:<br><br>C:\Work\rdailey-hp\dpd-cmake\cmake\scripts\cmake&gt;cmake -D<br>"DOXYGEN_TAGFILES=C:/bar/somevalue=C:/foo/another" -P configur<br>e_file.cmake<br>DOXYGEN_TAGFILES:<br><br>C:\Work\rdailey-hp\dpd-cmake\cmake\scripts\cmake&gt;cmake -D<br>"DOXYGEN_TAGFILES=C/bar/somevalue=C:/foo/another" -P configure<br>_file.cmake<br>DOXYGEN_TAGFILES: C/bar/somevalue=C:/foo/another<br><br>The only difference in both cases is that I have removed the first<br>occurance of ":" (colon), which occurs after DOXYGEN_TAGFILES=. Why<br>would this cause the variable to not be defined??<br><br>On Thu, Apr 11, 2013 at 8:52 AM, Robert Dailey &lt;rcdailey.lists@gmail.com&gt; wrote:<br>&gt; I'm invoking cmake -P to execute a CMake script in a custom command,<br>&gt; and I also pass in variables via -D. Here is the command that gets<br>&gt; generated by CMake for the custom command:<br>&gt;<br>&gt; "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -D<br>&gt; IN_FILE=C:/Work/rdailey-hp/dpd-cmake/server/gmmserver/domino/server/gwserver/doxygen_config.dox<br>&gt; -D OUT_FILE=C:/Work/rdailey-hp/dpd-cmake/build-vc9/output/documentation/gddomconnector/config.dox<br>&gt; -D DOXYGEN_OUTPUT_DIRECTORY=\"C:/Work/rdailey-hp/dpd-cmake/build-vc9/output/documentation/gddomconnector\"<br>&gt; -D DOXYGEN_GENERATE_TAGFILE=\"C:/Work/rdailey-hp/dpd-cmake/build-vc9/output/documentation/gddomconnector/doxygen.tag\"<br>&gt; -D "DOXYGEN_TAGFILES=C:/Work/rdailey-hp/dpd-cmake/build-vc9/output/documentation/gddominoaccess/doxygen.tag\=C:/Work/rdailey-hp/dpd-cmake/build-vc9/output/documentation/gddominoaccess/html<br>&gt; " -P C:/Work/rdailey-hp/dpd-cmake/cmake/scripts/cmake/configure_file.cmake<br>&gt;<br>&gt; The problem is the equal sign for the DOXYGEN_TAGFILES variable I'm<br>&gt; defining. If I insert an equal sign (I try to escape it with literal<br>&gt; '\' and also without), the variable DOXYGEN_TAGFILES does not get<br>&gt; defined inside the script. If I only remove the equal sign, then the<br>&gt; variable gets defined.<br>&gt;<br>&gt; How can I do this properly? I'm running this command inside Visual<br>&gt; Studio, but I also paste it directly into a command prompt in Windows<br>&gt; to test it, doesn't work there either.<br>&gt;<br>&gt; For the DOXYGEN_TAGFILES variable, here is how I generate that part of<br>&gt; the custom command in my CMake code:<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; set( dependency_tagfiles<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; "${dep_output_dir}/doxygen.tag\\=${dep_output_dir}/html "<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; )<br>&gt;<br>&gt; The above variable is passed directly into add_custom_command in the<br>&gt; ARGS field, after being appended to literal "DOXYGEN_TAGFILES="...<br>&gt;<br>&gt; Thanks in advance.<br>--<br><br>Powered by www.kitware.com<br><br>Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html<br><br>Please keep messages on-topic and check the CMake FAQ at: http://www.cmake.org/Wiki/CMake_FAQ<br><br>Follow this link to subscribe/unsubscribe:<br>http://www.cmake.org/mailman/listinfo/cmake<br></div></body></html>