<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> </div><div> cmake -D "DOXYGEN_TAGFILES:STRING=C:/bar/somevalue=C:/foo/another" -P configure_file.cmake</div><div> </div><div>Because of the “:TYPE” parsing, “:” after the = sign can sometimes be misinterpreted by the regex code used to parse these out...</div><div> </div><div> </div><div>HTH,</div><div>David</div><div> </div><div data-signatureblock="true"> </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> Robert Dailey<br><b>Sent:</b> Thursday, April 11, 2013 10:02 AM<br><b>To:</b> CMake</font></div></div><div> </div>Actually I did a bit more testing on this:<br><br>C:\Work\rdailey-hp\dpd-cmake\cmake\scripts\cmake>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>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 <rcdailey.lists@gmail.com> wrote:<br>> I'm invoking cmake -P to execute a CMake script in a custom command,<br>> and I also pass in variables via -D. Here is the command that gets<br>> generated by CMake for the custom command:<br>><br>> "C:\Program Files (x86)\CMake 2.8\bin\cmake.exe" -D<br>> IN_FILE=C:/Work/rdailey-hp/dpd-cmake/server/gmmserver/domino/server/gwserver/doxygen_config.dox<br>> -D OUT_FILE=C:/Work/rdailey-hp/dpd-cmake/build-vc9/output/documentation/gddomconnector/config.dox<br>> -D DOXYGEN_OUTPUT_DIRECTORY=\"C:/Work/rdailey-hp/dpd-cmake/build-vc9/output/documentation/gddomconnector\"<br>> -D DOXYGEN_GENERATE_TAGFILE=\"C:/Work/rdailey-hp/dpd-cmake/build-vc9/output/documentation/gddomconnector/doxygen.tag\"<br>> -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>> " -P C:/Work/rdailey-hp/dpd-cmake/cmake/scripts/cmake/configure_file.cmake<br>><br>> The problem is the equal sign for the DOXYGEN_TAGFILES variable I'm<br>> defining. If I insert an equal sign (I try to escape it with literal<br>> '\' and also without), the variable DOXYGEN_TAGFILES does not get<br>> defined inside the script. If I only remove the equal sign, then the<br>> variable gets defined.<br>><br>> How can I do this properly? I'm running this command inside Visual<br>> Studio, but I also paste it directly into a command prompt in Windows<br>> to test it, doesn't work there either.<br>><br>> For the DOXYGEN_TAGFILES variable, here is how I generate that part of<br>> the custom command in my CMake code:<br>><br>> set( dependency_tagfiles<br>> "${dep_output_dir}/doxygen.tag\\=${dep_output_dir}/html "<br>> )<br>><br>> The above variable is passed directly into add_custom_command in the<br>> ARGS field, after being appended to literal "DOXYGEN_TAGFILES="...<br>><br>> 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>