I am trying to set the configuration types for my CMakeLists.txt from the command line using the following call:
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
But unfortunately it seems to be not recognized and configure step (try_compile) is done with Debug as default configuration.
I read the docs for CMAKE_CONFIGURATION_TYPES
variable, searched the net but found no solution so far.
What am I doing wrong or is it a known limitation?
Environment: CMake 3.11.0, Visual Studio 14 2015 (x86/x64), Visual Studio 15 2017 (x86/x64) Windows 10, Windows 7