[CMake] running cmake with option
Eric Noulard
eric.noulard at gmail.com
Sat Nov 28 17:19:39 EST 2009
2009/11/28 Alex H <aditya15417 at hotmail.com>:
> if I have the following option:
> OPTION( HW08_TESTS "Run Homework 8 tests? (can take a long time...)" OFF )
> how can I run cmake with this option turned on?
> I tried
> cmake HW08_TESTS . and it doesn't work
What about
cmake -DBOOL:HW08_TESTS=ON
Another way to find answer for this kind of question
is to run cmake-gui then toggle the option value and then
go to
Tools-->Show my Changes
then the appropriate command line options to add should be displayed.
--
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org
More information about the CMake
mailing list