title: How to save CMake output to file?
body: <p>I can usually save the output of bash commands by <code>&gt;&gt; output_file.txt</code></p>
  
  <p>But when I execute <code>cmake</code> the output is still sent to the screen rather than output file as expected:</p>
  
  <pre><code>cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local -D \
  BUILD_NEW_PYTHON_SUPPORT=ON -D INSTALL_C_EXAMPLES=ON -D \
  INSTALL_PYTHON_EXAMPLES=ON  -D BUILD_EXAMPLES=ON .. &gt;&gt; output_file.txt
  </code></pre>