From 57742cb02b04ea973ff702b42a7e380decd4048f Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Thu, 11 Jul 2024 19:52:44 +0800 Subject: Statically link MSVC runtime (#4613) * Statically link MSVC runtime * Statically link MSVC runtime for llvm --- CMakePresets.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'CMakePresets.json') diff --git a/CMakePresets.json b/CMakePresets.json index 7e0697afb..08f85a37f 100644 --- a/CMakePresets.json +++ b/CMakePresets.json @@ -10,7 +10,10 @@ "name": "default", "description": "Default build using Ninja Multi-Config generator", "generator": "Ninja Multi-Config", - "binaryDir": "${sourceDir}/build" + "binaryDir": "${sourceDir}/build", + "cacheVariables": { + "CMAKE_MSVC_RUNTIME_LIBRARY": "MultiThreaded$<$:Debug>" + } }, { "name": "msvc-base", -- cgit v1.2.3