0

So let's say that now I have this in CMakeLists.txt:

set(VAR1 1) 

Is it possile to pass a value from the command line instead of putting "1" directly to the CMakeLists.txt? By passing some addition parameters while calling cmake in cmd, for example?

Thanks.

2
  • 1
    cmake -D VAR1=1 ... Commented Jan 31, 2018 at 11:26
  • Thanks for the answer and sorry for the duplicate. I used search but did not see that one for some reason. Commented Jan 31, 2018 at 11:31

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.