[CMake] Fwd: ARGV to pass to CMAKE_COMMAND
Alexander Neundorf
a.neundorf-work at gmx.net
Tue Apr 7 18:34:09 EDT 2009
On Wednesday 08 April 2009, Bill O'Hara wrote:
> Perhaps I'm missing something. What I'm trying to do is script things so
> the usercan do this
>
> cd build
> cmake -Dfoo=bar /path/to/sources
> make
The problem here is that the user could also do:
cd build
cmake-gui
# set foo and maybe other variables inside cmake-gui
make
In this case knowing the command line doesn't help you.
That's why I suggest either give a list of known and useful variables to the
other cmake, or try to do something directly with the cache.
Alex
More information about the CMake
mailing list