[CMake] passing arguments to the final make
Andrea Crotti
andrea.crotti.0 at gmail.com
Wed Feb 22 10:43:02 EST 2012
I would like to be able to pass arguments to my generated Makefile.
Suppose I use an environment variable like this:
add_custom_target(run_dev_script
COMMAND ${PYTHON_EXECUTABLE} ${PREREQUISITE}
COMMAND ${PYTHON_EXECUTABLE} ${SCRIPT}
)
Would that actually work?
In theory ${SCRIPT} is substituted at cmake time, so I have the
impression that it wouldn't work..
I don't find anything useful in cmake -E however, that would allow me to
do something at make time.
Any suggestions?
More information about the CMake
mailing list