Also to mail list.<br><br><div class="gmail_quote">---------- Forwarded message ----------<br>From: <b class="gmail_sendername">Bill O&#39;Hara</b> <span dir="ltr">&lt;<a href="mailto:billtohara@gmail.com">billtohara@gmail.com</a>&gt;</span><br>
Date: Tue, Apr 7, 2009 at 12:51 PM<br>Subject: Re: [CMake] ARGV to pass to CMAKE_COMMAND<br>To: <a href="mailto:a.neundorf-work@gmx.net">a.neundorf-work@gmx.net</a><br><br><br>I think it makes sense for us. We have a quite large build and sometimes users want to rebuild part of our software automatically rather than use a preinstalled version. We can support this with recursive calls to cmake for the particular code they are trying to build but we need to also pass down whatever parameters they passed to the top-level cmake invocation. We don&#39;t know them all ahead of time, nor do we really want to hardcode them explicitly in the calls to cmake.<br>

<br><br><div class="gmail_quote">2009/4/7 Alexander Neundorf <span dir="ltr">&lt;<a href="mailto:a.neundorf-work@gmx.net" target="_blank">a.neundorf-work@gmx.net</a>&gt;</span><div><div></div><div class="h5"><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><div></div><div>On Tuesday 07 April 2009, Bill O&#39;Hara wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; At one point in a user&#39;s build they are calling out to CMAKE_COMMAND as<br>
&gt; part of a custom target.<br>
&gt;<br>
&gt; Is there an easy way to propagate all the arguments to the original cmake<br>
&gt; invocation to this child cmake process? Essentially I just want to be able<br>
&gt; to grab ARGV of the parent cmake but didn&#39;t spot how to do that.<br>
<br>
</div></div>No, and I think in general this wouldn&#39;t make a lot of sense.<br>
What do you want to pass ?<br>
The generator ? There is the CMAKE_GENERATOR variable for that.<br>
Some values from cache ? Then pass explicitely these values.<br>
<br>
Alex<br>
</blockquote></div></div></div><br>
</div><br>