xmake-io / xmake

🔥 A cross-platform build utility based on Lua
https://xmake.io
Apache License 2.0
9.87k stars 776 forks source link

incorrect conan profile generated when using vs 17.1x #5338

Closed shaqtsui closed 2 months ago

shaqtsui commented 2 months ago

Xmake Version

2.9.3

Operating System Version and Architecture

windows10

Describe Bug

incorrect conan profile generated when using vs 17.1x

Currently generated build profile doen't support vs 17.1x

[settings]
arch=x86_64
build_type=Release
os=Windows
compiler=msvc
compiler.version=**193**
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release

Expected Behavior

Currently generated build profile support vs 17.1x

e.g.

[settings]
arch=x86_64
build_type=Release
os=Windows
compiler=msvc
compiler.version=**194**
compiler.cppstd=14
compiler.runtime=dynamic
compiler.runtime_type=Release

Project Configuration

add_requires("conan::cyrus-sasl/2.1.28", { alias = "cyrus-sasl", debug = is_mode("debug"), configs = { options = "cyrus-sasl/*:shared=True", settings = { "compiler.cppstd=23", "compiler.version=194" }} })
add_requires("conan::boost/1.85.0", { alias = "boost", debug = is_mode("debug"), configs = { options = "boost/*:without_cobalt=False", settings = { "compiler.cppstd=23", "compiler.version=194" } } })

add_packages("boost", "cyrus-sasl")

target "server"
add_files "src/server.cxx"

Additional Information and Error Logs

N.A

waruqi commented 2 months ago

try this patch. https://github.com/xmake-io/xmake/pull/5343

xmake update -s dev