title: How to invoke cmake from powershell using MinGW generator
body: <p>I am trying to invoke cmake from powershell so that I can build project with MinGW compiler. It works fine for Visual Studio generator, and it also work when I use cmake-gui, however from powershell I get this error:</p>
  
  <pre><code>cmake ..\..\huggle -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=C:\Qt\Tools\mingw491_32\bin\mingw32-make.exe
  -- The C compiler identification is unknown
  -- Check for working C compiler: C:/Qt/Tools/mingw491_32/bin/gcc.exe
  -- Check for working C compiler: C:/Qt/Tools/mingw491_32/bin/gcc.exe -- broken
  cmake : CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.1/Modules/CMakeTestCCompiler.cmake:61 (message):
  At line:1 char:1
  + cmake ..\..\huggle -G "MinGW Makefiles" -DCMAKE_MAKE_PROGRAM=C:\Qt\Tools\mingw49 ...
  + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      + CategoryInfo          : NotSpecified: (CMake Error at ...e:61 (message)::String) [], RemoteException
      + FullyQualifiedErrorId : NativeCommandError
  </code></pre>
  
  <p>Some kind of switch that would make cmake be more verbose about the error would be nice, when I run cmake using gui I get this output:</p>
  
  <pre><code>-- The C compiler identification is GNU 4.9.1
  -- The CXX compiler identification is GNU 4.9.1
  -- Check for working C compiler: C:/Qt/Tools/mingw491_32/bin/gcc.exe
  -- Check for working C compiler: C:/Qt/Tools/mingw491_32/bin/gcc.exe -- works
  -- Detecting C compiler ABI info
  -- Detecting C compiler ABI info - done
  -- Detecting C compile features
  -- Detecting C compile features - done
  -- Check for working CXX compiler: C:/Qt/Tools/mingw491_32/bin/g++.exe
  -- Check for working CXX compiler: C:/Qt/Tools/mingw491_32/bin/g++.exe -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - done
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Found PythonLibs: C:/Python34/libs/libpython34.a (found version "3.4.1") 
  -- Configuring done
  -- Generating done
  </code></pre>