title: How do I limit the cmake configuration types for Visual Studio builds from command line?
body: <p>I am trying to set the configuration types for my CMakeLists.txt from the command line using the following call:</p>
  
  <pre><code>cmake .. -G "Visual Studio 14 2015 Win64" -T host=x64 -DCMAKE_CONFIGURATION_TYPES:STRING=Release -DCMAKE_INSTALL_PREFIX=C:\Temp -DCMAKE_PREFIX_PATH=C:\Temp\downloads
  </code></pre>
  
  <p>But unfortunately it seems to be not recognized and configure step (try_compile) is done with Debug as default configuration.</p>
  
  <p>I read the docs for <code>CMAKE_CONFIGURATION_TYPES</code> variable, searched the net but found no solution so far.
  What am I doing wrong or is it a known limitation?</p>
  
  <p>Environment: CMake 3.11.0, Visual Studio 14 2015 (x86/x64), Visual Studio 15 2017 (x86/x64) Windows 10, Windows 7</p>