[CMake] Parsing command line arguments from the make
Fedja Jeleskovic
mrawd2 at gmail.com
Fri Apr 1 14:07:40 EDT 2016
Since I am converting existing makefile project to use cmake instead I need
to accept values that come from command line which looks like this:
VARIABLE_NAME="/home/user/project" make ENV=VERSION_2
First one is used like this:
include $(VARIABLE_NAME)/Makefile.include
Second one has this code that triggers different paths later:
ifneq ($(ENV),)
DEPLOYMENT_VERSION=$(ENV)
endif
How do I do this in cmake?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/cmake/attachments/20160401/25f7934d/attachment.html>
More information about the CMake
mailing list