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

add CMAKE_GENERATOR_PLATFORM and CMAKE_GENERATOR_TOOLSET conditionall… #8333

Closed

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Jan 13, 2021

…y to Visual Studio only in CMakeToolchain

Changelog: Fix: Do not define CMAKE_GENERATOR_PLATFORM and CMAKE_GENERATOR_TOOLSET in the CMakeToolchain file unless the CMake generator is "Visual Studio". Fix #7485
Docs: Omit

This might be a temporary measure, as the generator needs to become more explicit at some point (via configuration or some other way), so the CMakeToolchain might decide to completely skip those definitions if they don't apply.

@memsharded memsharded added this to the 1.33 milestone Jan 13, 2021
@memsharded
Copy link
Member Author

It seems this is not necessary. The toolchain already incorporated checks, if the generator is not "Visual" one, it will not add any longer those variables. This can be closed.

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.

[feature] [toolchain.cmake] Set platform and toolset only if generator matches Visual Studio
1 participant