diff options
Diffstat (limited to 'xmake/core/project/project.lua')
| -rw-r--r-- | xmake/core/project/project.lua | 2 |
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 |
