I have a similar problem to this CMake compile with /MT instead of /MD but with some differences:
I'm using Visual Studio 2017 to build a library using CMake and Ninja generator. Visual Studio gives me some choices (configurations) like x86-Debug, etc. There is also a CMakeSettings.json file that seems I can manipulate Visual Studio's default configurations through it. But I don't know how!
I want to compile my library with /MT but I don't want to hard code it inside the CMakeLists.txt file like in the above post. That mean I want to compile my library based on the user choice through the configurations.
Is there any variable in CMakeSettings.json file that helps me to define /MT compiler switch? What about static/dynamic building of the library? Are there any help available about this file?