title: CMake with mingw on Windows 10: Detecting CXX compiler ABI info - failed
body: <p>I want to use cmake to create MinGW Makefiles on windows 10. I have installed mingw and I can use mingw32-make and g++ commands without issue. </p>
  
  <p>The test project is a super simple CMakeLists.txt file:</p>
  
  <pre><code>cmake_minimum_required(VERSION 3.10)
  project(hello-world)
  add_executable(hello-world main.cpp)
  </code></pre>
  
  <p>and a simple main.cpp file:</p>
  
  <pre><code>#include &lt;iostream&gt;
  int main() {
      std::cout &lt;&lt; "hello Visual Studio Code! :)" &lt;&lt; '\n'; 
      return 0;
  }
  </code></pre>
  
  <p>These are the commands I use to create the makefiles:</p>
  
  <pre><code>&gt;&gt; mkdir build
  &gt;&gt; cd build
  &gt;&gt; cmake -G "MinGW Makefiles" ..
  </code></pre>
  
  <p>This is where I get errors:</p>
  
  <pre><code>CMake Error at C:/Program Files (x86)/CMake/share/cmake-3.10/Modules/CMakeDetermineCompilerId.cmake:495 (file):
  file STRINGS file
  "C:/Projects/test/build/CMakeFiles/3.10.1/CompilerIdCXX/a.exe" cannot be read.
  
  ... some more errors in the test files
  
  -- The CXX compiler identification is GNU 6.3.0
  -- Check for working C compiler: C:/MinGW/bin/gcc.exe
  -- Check for working C compiler: C:/MinGW/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:/MinGW/bin/g++.exe
  -- Check for working CXX compiler: C:/MinGW/bin/g++.exe -- works
  -- Detecting CXX compiler ABI info
  -- Detecting CXX compiler ABI info - failed
  -- Detecting CXX compile features
  -- Detecting CXX compile features - done
  -- Configuring incomplete, errors occurred!
  </code></pre>
  
  <p>This is from the error log:</p>
  
  <pre><code>The CXX compiler identification could not be found in "C:/Projects/test/build/CMakeFiles/3.10.1/CompilerIdCXX/a.exe"
  </code></pre>
  
  <p><strong>What is the CXX compiler ABI info and how can it be, that there is a working CXX compiler detected but this fails?</strong></p>
  
  <p>Let me know if you need anymore info about the setup!</p>