https://cmake.org/cmake/help/latest/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html
https://cmake.org/cmake/help/latest/prop_tgt/MSVC_RUNTIME_LIBRARY.html
The variable CMAKE_MSVC_RUNTIME_LIBRARY
can be used to set the target property MSVC_RUNTIME_LIBRARY
.
Your command should use CMAKE_MSVC_RUNTIME_LIBRARY
.