I have a makefile for my project and also I am passing some argument and based on that argument i am seting some flag. I am able to do this . but now I want to do the same using cmake. I have created cmakelist.txt
but I don't know how to pass the argument and check for the argument value in cmakelist.txt
.
Sample of my makefile:
ifeq "$(FAB)" "po"
//setting some flags
else
//setting some iother flag
endif
What is the way to take the argument from command prompt and set flags based on that?