title: "The C Compiler [...] is not able to compile a simple test program" using CMake and Android NDK
body: <p>I'm currently testing the Visual Studio 2017 RC CMake support for Android NDK C++ projects on Windows and encountered an issue.</p>
  
  <p>When I try to generate the CMake cache with: </p>
  
  <pre><code>&lt;cmake.exe&gt; -G "Visual Studio 15 2017" -DCMAKE_INSTALL_PREFIX:PATH=&lt;install_path&gt; -DCMAKE_TOOLCHAIN_FILE="&lt;androidNDK_path&gt;\build\cmake\android.toolchain.cmake" -DANDROID_TOOLCHAIN=gcc -DANDROID_ABI="armeabi-v7a with NEON" --DCMAKE_BUILD_TYPE="Debug" &lt;source&gt;
  </code></pre>
  
  <p>I get the following error (The same happens with clang if I don't force gcc):</p>
  
  <pre><code>The C compiler "&lt;androidNDK_path&gt;/toolchains/arm-linux-androideabi-4.9/prebuilt/windows-x86_64/bin/arm-linux-androideabi-gcc.exe" is not able to compile a simple test program.
  </code></pre>
  
  <p>Before that I get the warnings that the identification of the C and CXX compilers are unknown but I'm not sure that's relevant.</p>
  
  <p>I get more errors for the temporary test project but they don't seem to give a lot of information like</p>
  
  <pre><code>C:\Program Files (x86)\Microsoft Visual
  Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5):
  error MSB4018: The "VCMessage" task failed unexpectedly.
  </code></pre>
  
  <p>and</p>
  
  <pre><code>C:\Program Files (x86)\Microsoft Visual
  Studio\2017\Enterprise\Common7\IDE\VC\VCTargets\Microsoft.Cpp.Platform.targets(57,5):
  error MSB4018: System.FormatException: Index (zero based) must be greater
  than or equal to zero and less than the size of the argument list.
  </code></pre>
  
  <p>How could I troubleshoot this?</p>