diff options
| author | Tiangang Song <[email protected]> | 2023-07-21 18:13:13 -0700 |
|---|---|---|
| committer | Tiangang Song <[email protected]> | 2023-07-21 18:13:13 -0700 |
| commit | 8603d1138632d12ca29648ad66d04ffca54c358f (patch) | |
| tree | 28587d6e04865c2e242ec731c323e258e45f17af | |
| parent | cb6ac8efc7aecc0bf24d8a1844d0c76233cb84ea (diff) | |
Set cppstd for msvc in conan 2.0
| -rw-r--r-- | xmake/modules/package/manager/conan/v2/install_package.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xmake/modules/package/manager/conan/v2/install_package.lua b/xmake/modules/package/manager/conan/v2/install_package.lua index b58d28365..102a8abeb 100644 --- a/xmake/modules/package/manager/conan/v2/install_package.lua +++ b/xmake/modules/package/manager/conan/v2/install_package.lua @@ -178,6 +178,9 @@ function _conan_generate_compiler_profile(profile, configs, opt) local vs = assert(config.get("vs"), "vs not found!") profile:print("compiler=msvc") profile:print("compiler.version=" .. assert(vsvers[vs], "unknown msvc version!")) + if vs >= 2015 then + profile:print("compiler.cppstd=14") + end local vs_runtime = configs.vs_runtime if vs_runtime then profile:print("compiler.runtime=" .. (vs_runtime:startswith("MD") and "dynamic" or "static")) |
