title: Passing the argument to CMAKE via command prompt
body: <p>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 <code>cmakelist.txt</code> but I don't know how to pass the argument and check for the argument value in <code>cmakelist.txt</code>.</p>
  
  <p>Sample of my makefile:</p>
  
  <pre><code>ifeq "$(FAB)" "po"
        //setting some flags
  else
        //setting some iother flag
  endif
  </code></pre>
  
  <p>What is the way to take the argument from command prompt and set flags based on that?</p>