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

Mateusz Loskot mateusz at loskot.net
Mon Oct 28 07:08:47 EDT 2019


On Mon, 28 Oct 2019 at 12:01, Osman Zakir <osmanzakir90 at hotmail.com> wrote:
>
> I'm trying to build LLVM 10.0.0 with CMake on the command line (Developer Command Prompt for VS2019)
> and I need to know how to switch to a static runtime.

This may help (CMake 3.15 or later only):

https://cmake.org/cmake/help/latest/policy/CMP0091.html
https://cmake.org/cmake/help/v3.15/prop_tgt/MSVC_RUNTIME_LIBRARY.html

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


More information about the CMake mailing list