[CMake] cmake -P arguments
Bill Hoffman
bill.hoffman at kitware.com
Fri Sep 7 11:57:13 EDT 2007
Brandon Van Every wrote:
> If I call a CMake script using
>
> cmake -P myscript.cmake arg1 arg2 arg3 ... argn
>
> can I get the arguments somehow? I'm familiar with passing definitions via
>
> cmake -Dvar1=value1 -Dvar2=value2 ... -Dvarn=valuen -P myscript.cmake
>
> but I'm interested in not having to remember any names of definitions.
> I've looked in the usual docs/wiki, the useful variables, the
> archives to some degree, and I've grepped the sources some. Haven't
> found what I'm looking for. Does it exist?
>
Currently the -Dvar=value is the only way. There is no direct access to
the command line right now.
-Bill
More information about the CMake
mailing list