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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…