[CMake] ARGV to pass to CMAKE_COMMAND

Alexander Neundorf a.neundorf-work at gmx.net
Tue Apr 7 15:44:49 EDT 2009


On Tuesday 07 April 2009, Bill O'Hara wrote:
> Hi,
>
> At one point in a user's build they are calling out to CMAKE_COMMAND as
> part of a custom target.
>
> Is there an easy way to propagate all the arguments to the original cmake
> invocation to this child cmake process? Essentially I just want to be able
> to grab ARGV of the parent cmake but didn't spot how to do that.

No, and I think in general this wouldn't make a lot of sense.
What do you want to pass ?
The generator ? There is the CMAKE_GENERATOR variable for that.
Some values from cache ? Then pass explicitely these values.

Alex


More information about the CMake mailing list