Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set vs_toolset for msbuild #5398

Merged
merged 1 commit into from
Jul 26, 2024
Merged

set vs_toolset for msbuild #5398

merged 1 commit into from
Jul 26, 2024

Conversation

ChrisCatCP
Copy link
Contributor

No description provided.

local vs_toolset = toolchain_utils.get_vs_toolset_ver(_get_msvc(package):config("vs_toolset") or config.get("vs_toolset"))
if vs_toolset then
table.insert(configs, "/p:PlatformToolset=" .. vs_toolset)
end
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

tools.cmake 里已经走 CMAKE_GENERATOR_TOOLSET 配置过了,这里再传,会冲突么?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不会冲突,命令行的优先级更高

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

好的

@waruqi waruqi added this to the v2.9.4 milestone Jul 26, 2024
@waruqi waruqi merged commit db6f72c into xmake-io:dev Jul 26, 2024
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants