<br>Yes, this is the feature that I&#39;m looking for.  I want to use ccmake for the initial configuration and then automatically &quot;translate&quot; that configuration into an equivalent command line for cmake (all on *nix system), which I can then put into an automated build script (sh or bash) that I can run on other systems (via ssh, macports, etc.).<br>
<br>I&#39;ll try your diff suggestion James.<br><br>Thanks, Darren<br><br><br><br><div class="gmail_quote">On Mon, Mar 30, 2009 at 9:23 PM, James Bigler <span dir="ltr">&lt;<a href="mailto:jamesbigler@gmail.com">jamesbigler@gmail.com</a>&gt;</span> wrote:<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 class="h5"><div class="gmail_quote">On Mon, Mar 30, 2009 at 9:27 PM, Philip Lowman <span dir="ltr">&lt;<a href="mailto:philip@yhbt.com" target="_blank">philip@yhbt.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div class="gmail_quote"><div>On Mon, Mar 30, 2009 at 4:09 PM, Darren Weber <span dir="ltr">&lt;<a href="mailto:darren.weber.lists@gmail.com" target="_blank">darren.weber.lists@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Can we automatically extract an equivalent cmake command line after running ccmake?<br><br>Take care, Darren</blockquote></div><div><br>If you&#39;re using the Makefile generator you can simply type &quot;make edit_cache&quot; in your build tree after you&#39;ve initially generated.<br>



<br>If this doesn&#39;t solve your problem you likely can look towards finding the source directory in the CMakeCache.txt file.<br></div></div></blockquote></div><br></div></div>I think he wants to run ccmake and configure things how he likes and then get a command line that would produce the equivalent configuration without ccmake (i.e. cmake -DSOMEVAR:BOOL=ON -DPATH_TO_SOME_EXE:PATH=/path/to/some.exe).  This way, he can configure a new build in one easy step.<br>


<br>I don&#39;t believe this feature exists, though you could get something close by doing the following.<br><br>1. Create a build directory and run cmake &lt;path to source&gt;.  This is your default configuration.<br>2. Copy CMakeCache.txt some where safe.<br>


3. Configure you system with ccmake.<br>4. Diff the old CMakeCache.txt and the new CMakeCache.txt.  The differences should show you a superset of the options you will need (depending on if some options are automatically generated when you turn others on).<br>
<font color="#888888">

<br>James<br>
</font><br>_______________________________________________<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br>