<div dir="ltr">Hi Jupiter, <div><br></div><div style>"ccmake" and "cmake" are two different executables.</div><div style><br></div><div style>See <a href="http://www.cmake.org/cmake/help/runningcmake.html">http://www.cmake.org/cmake/help/runningcmake.html</a> for details.</div>
<div style><br></div><div style><br></div><div style>If you would like to enable / disable an option from the command line, you could do:<br></div><div style><br></div><div style>cd /path/to/build</div><div style>./cmake -DNAMEOFOPTION:BOOL=ON /path/to/source</div>
<div style><br></div><div style>Hth</div><div style>Jc</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Mar 2, 2013 at 6:22 AM, hce <span dir="ltr"><<a href="mailto:jupiter.hce@gmail.com" target="_blank">jupiter.hce@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Thanks Jean-Christophe. I did read the document before, but still could not<br>
figure out how to switch all modules from default OFF to ON in ccmake<br>
command line, and still could not figure out how to run ccmake without<br>
interactive button push c-> configure, q-> quit.<br>
<br>
I looked at ccmake --help, I guess the -D may be the relavent option to<br>
switch a module to ON, but could not understand how to use it. Sorry for my<br>
dumb, appreciate an example.<br>
<br>
-D <var>:<type>=<value><br>
<br>
Thank you.<br>
<br>
Kind regards.<br>
<br>
j<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://cmake.3232098.n2.nabble.com/How-to-make-ccmake-automatic-run-to-select-all-modules-in-a-script-tp7583458p7583461.html" target="_blank">http://cmake.3232098.n2.nabble.com/How-to-make-ccmake-automatic-run-to-select-all-modules-in-a-script-tp7583458p7583461.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the CMake mailing list archive at Nabble.com.<br>
--<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>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>+1 919 869 8849<br>
</div>