diff options
| author | Ellie Hermaszewska <ellieh@nvidia.com> | 2024-07-11 19:52:44 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-11 19:52:44 +0800 |
| commit | 57742cb02b04ea973ff702b42a7e380decd4048f (patch) | |
| tree | 7d9442161f76e91e66ddb108002d5b84b980cddf /CMakePresets.json | |
| parent | 304f9f9a355ba543c767094c17f147e3845065fa (diff) | |
Statically link MSVC runtime (#4613)
* Statically link MSVC runtime
* Statically link MSVC runtime for llvm
Diffstat (limited to 'CMakePresets.json')
| -rw-r--r-- | CMakePresets.json | 5 |
1 files changed, 4 insertions, 1 deletions
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$<$<CONFIG:Debug>:Debug>" + } }, { "name": "msvc-base", |
