title: Setting default compiler in CMake
body: <p>I'm using CMake version 2.8 on WinXP SP3. Whenever i run my CMakeLists script by default CMake use Visual Studio 10 compiler. I've tried to do:</p>
  
  <pre><code>SET( CMAKE_CXX_COMPILER "C:/MinGW/bin/g++" )
  </code></pre>
  
  <p>without success. How can i set MinGW as my default compiler so that i do not have to worry about setting compiler in the CMakeLists?</p>