[CMake] passing arguments to the final make

Andrea Crotti andrea.crotti.0 at gmail.com
Wed Feb 22 12:56:54 EST 2012


On 02/22/2012 05:32 PM, Andrea Crotti wrote:
>
> Ah that's nice thanks, I'm not sure though that I can rely on being >= 
> 2.8 always,
> and that's probably a requirement, right?
>

I tried what you suggested and with this:
add_custom_target(dev_no_run
   COMMAND ${PYTHON_EXECUTABLE} ${DEV_MAIN} -w ${WORKSPACE} 
${APPLICATION} --develop_only -l info
   COMMAND ${PYTHON_EXECUTABLE} \${SCRIPT}
   )

I get this in the Makefile:

CMakeFiles/dev_no_run:
     /usr/bin/python 
/home/andrea/git_projs/PSI_Hamburg/utils/utils/bin/dev_main.py -w 
/home/andrea/git_projs 
/home/andrea/git_projs/Minimum_Drag/airbus.application.minimum_drag 
--develop_only -l info
     /usr/bin/python ${SCRIPT}

which is probably not what I want, because for a Makefile it should be 
$(SCRIPT), right?


More information about the CMake mailing list