[CMake] How to make ccmake automatic run to select all modules in a script?

Jean-Christophe Fillion-Robin jchris.fillionr at kitware.com
Sat Mar 2 07:22:13 EST 2013


Hi Jupiter,

"ccmake"  and "cmake" are two different executables.

See http://www.cmake.org/cmake/help/runningcmake.html for details.


If you would like to enable / disable an option from the command line, you
could do:

cd /path/to/build
./cmake -DNAMEOFOPTION:BOOL=ON /path/to/source

Hth
Jc


On Sat, Mar 2, 2013 at 6:22 AM, hce <jupiter.hce at gmail.com> wrote:

> Thanks Jean-Christophe. I did read the document before, but still could not
> figure out how to switch all modules from default OFF to ON in ccmake
> command line, and still could not figure out how to run ccmake without
> interactive button push c-> configure, q-> quit.
>
> I looked at ccmake --help, I guess the -D may be the relavent option to
> switch a module to ON, but could not understand how to use it. Sorry for my
> dumb, appreciate an example.
>
> -D <var>:<type>=<value>
>
> Thank you.
>
> Kind regards.
>
> j
>
>
>
> --
> View this message in context:
> http://cmake.3232098.n2.nabble.com/How-to-make-ccmake-automatic-run-to-select-all-modules-in-a-script-tp7583458p7583461.html
> Sent from the CMake mailing list archive at Nabble.com.
> --
>
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the CMake FAQ at:
> http://www.cmake.org/Wiki/CMake_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.cmake.org/mailman/listinfo/cmake
>



-- 
+1 919 869 8849
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130302/4506c6e7/attachment.htm>


More information about the CMake mailing list