[CMake] How to Switch to Static Runtime on Command Line?

Mateusz Loskot mateusz at loskot.net
Mon Oct 28 08:43:48 EDT 2019


On Mon, 28 Oct 2019 at 13:09, Osman Zakir <osmanzakir90 at hotmail.com> wrote:
>
> I did read that.
> I tried to specify CMAKE_MSVC_RUNTIME_LIBRARY and MSVC_RUNTIME_LIBRARY as /MT, -MT and MT, but nothing worked.

I'm sorry, but that confirms you did not read that document.

Hint 1: "The allowed values are"

Hint 2: In CMake, for XXX property there is a corresponding variable
https://cmake.org/cmake/help/v3.15/variable/CMAKE_MSVC_RUNTIME_LIBRARY.html

Best regards,
-- 
Mateusz Loskot, http://mateusz.loskot.net


More information about the CMake mailing list