title: Enumerate console parameters (argv) in CMake
body: <p>I want to parse/process passed console parameters in CMake, so that if I run this in console:</p>
  
  <pre><code>cmake -DCMAKE_BUILD_TYPE=Release -DSOME_FLAG=1 ..
  </code></pre>
  
  <p>I want to obtain the <code>-DCMAKE_BUILD_TYPE=Release</code> and <code>-DSOME_FLAG=1</code> from this inside CMake script (and every other parameter passed) and save them somewhere. </p>
  
  <p>The reason I want it is to pass all parameters through custom CMake script (which calls <code>execute_process(cmake &lt;something&gt;)</code> after) e.g. </p>
  
  <pre><code>cmake -DCMAKE_BUILD_TYPE=Release -P myscript.cmake
  </code></pre>