Put the -D args *before* the -P -- it'll work like you expect then...<br>
<br>
:-)<br>
David<br><br><div><span class="gmail_quote">On 1/25/07, <b class="gmail_sendername">Abe Stephens</b> <<a href="mailto:abe@sci.utah.edu">abe@sci.utah.edu</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Is there a way to pass command line arguments into variables when using<br>"cmake -P"?<br><br>I tried "cmake -P foo.cmake -D var=value" but that didn't work. I could<br>do it using configure file, but that seems overly complicated.
<br><br>Thanks-<br>Abe<br><br>_______________________________________________<br>CMake mailing list<br><a href="mailto:CMake@cmake.org">CMake@cmake.org</a><br><a href="http://www.cmake.org/mailman/listinfo/cmake">http://www.cmake.org/mailman/listinfo/cmake
</a><br></blockquote></div><br>