CMAKE_MSVC_RUNTIME_LIBRARY is not set correctly
CMAKE_MSVC_RUNTIME_LIBRARY is not set correctly in build files with Ninja or VS generator.
CMakeLists.txt has the following.
set(CMAKE_MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
Expected behavior
build.ninja (Ninja generator) would have build flags /MTd
in Debug build bype.
And, vcxproj file (Visual Studio Generator) would have <RuntimeLibrary>MultiThreadedDebug</RuntimeLibrary>
in Debug configuration.
Actual behavior
Ninja FLAGS = /DWIN32 /D_WINDOWS /W3 /GR /EHsc /MDd /Zi /Ob0 /Od /RTC1
Visual Studio Generator
<RuntimeLibrary>MultiThreadedDebugDLL</RuntimeLibrary>
Latest MSVC. Tested with CMake shipping with MSVC and CMake 3.20.0-rc1