title: CLion + MinGW Test CMake run finished with errors
body: <p>I'm new on this IDE, and programming on Windows, I've installed MinGW and added to enviroment path all is ok, I can compile and execute code from "cmd", but when I run CLion I have this error:</p>
  
  <blockquote>
    <p>-- The C compiler identification is GNU 6.3.0<br>
    -- The CXX compiler identification is GNU 6.3.0<br>
    -- Check for working C compiler: C:/MinGW/bin/gcc.exe<br>
    -- Check for working C compiler: C:/MinGW/bin/gcc.exe -- broken<br>
    CMake Error at C:/Program Files/JetBrains/CLion 2017.3.1/bin/cmake/share/cmake-3.9/Modules/CMakeTestCCompiler.cmake:51 (message):<br>
      The C compiler "C:/MinGW/bin/gcc.exe" is not able to compile a simple test
      program.</p>
  </blockquote>
  
  <p>It fails with the following output:</p>
  
  <blockquote>
    <p>Change Dir: C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp</p>
    
    <p>Run Build Command:"C:/MinGW/bin/mingw32-make.exe" "cmTC_2e43b/fast"</p>
    
    <p>C:/MinGW/bin/mingw32-make.exe -f CMakeFiles\cmTC_2e43b.dir\build.make
      CMakeFiles/cmTC_2e43b.dir/build</p>
    
    <p>mingw32-make.exe<a href="https://i.stack.imgur.com/lNXGB.png" rel="nofollow noreferrer">1</a>: Entering directory<br>
      'C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp'</p>
    
    <p>CMakeFiles\cmTC_2e43b.dir\build.make:64: recipe for target<br>
      'CMakeFiles/cmTC_2e43b.dir/testCCompiler.c.obj' failed  </p>
    
    <p>process_begin:<br>
      CreateProcess(C:\Users\noName\AppData\Local\Temp\make2428-1.bat,
      C:\Users\noName\AppData\Local\Temp\make2428-1.bat, ...) failed.</p>
    
    <p>make (e=2): El sistema no puede encontrar el archivo especificado.</p>
    
    <p>mingw32-make.exe<a href="https://i.stack.imgur.com/lNXGB.png" rel="nofollow noreferrer">1</a>: *** [CMakeFiles/cmTC_2e43b.dir/testCCompiler.c.obj]
      Error 2</p>
    
    <p>mingw32-make.exe<a href="https://i.stack.imgur.com/lNXGB.png" rel="nofollow noreferrer">1</a>: Leaving directory<br>
      'C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeTmp'</p>
    
    <p>Makefile:125: recipe for target 'cmTC_2e43b/fast' failed</p>
    
    <p>mingw32-make.exe: *** [cmTC_2e43b/fast] Error 2</p>
    
    <p>CMake will not be able to correctly generate this project.
    Call Stack (most recent call first):<br>
      CMakeLists.txt:1 (project)</p>
    
    <p>-- Configuring incomplete, errors occurred!<br>
    See also "C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeOutput.log".<br>
    See also "C:/Users/noName/AppData/Local/Temp/cmake_check_environment/_build/CMakeFiles/CMakeError.log".</p>
    
    <p>Error code: 1</p>
  </blockquote>
  
  <p>This is the photo. I think this is and error with CMake(?)
  <img src="https://i.stack.imgur.com/lNXGB.png" alt=""></p>