summaryrefslogtreecommitdiff
path: root/xmake/core/project/project.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2024-09-16 22:38:51 +0800
committerruki <[email protected]>2024-09-16 22:38:51 +0800
commit95db53c2338b030d0dd99620d388882a3faeb653 (patch)
tree86e00359e1cdd16e300ea2d0e840cd9e3101b78f /xmake/core/project/project.lua
parentf9196dfa7073e3c3511230072d606c89f28a075d (diff)
add vs runtime policy
Diffstat (limited to 'xmake/core/project/project.lua')
-rw-r--r--xmake/core/project/project.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/core/project/project.lua b/xmake/core/project/project.lua
index 836ece6b6..b6c7e6334 100644
--- a/xmake/core/project/project.lua
+++ b/xmake/core/project/project.lua
@@ -827,8 +827,10 @@ function project._init_default_policies()
if compatibility_version then
if semver.compare(compatibility_version, "3.0") >= 0 then
policy.set_default("package.cmake_generator.ninja", true)
+ policy.set_default("build.c++.msvc.runtime", "MD")
else
policy.set_default("package.cmake_generator.ninja", false)
+ policy.set_default("build.c++.msvc.runtime", "MT")
end
end
end