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

Fixing cmake_layout single config #12829

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Jan 3, 2023

Changelog: Bugfix: Make cmake_layout to use single-config folder for generated files.
Docs: conan-io/docs#2891

Close #12827

@memsharded memsharded requested review from czoido and jcar87 January 3, 2023 11:49
@memsharded memsharded marked this pull request as ready for review January 3, 2023 11:49
@@ -49,17 +50,11 @@ def get_build_folder_custom_vars(conanfile):
default=[], check_type=list)
ret = []
for s in build_vars:
group, var = s.split(".", 1)
Copy link
Contributor

Choose a reason for hiding this comment

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

what if it doesn't have a dot, will it raise with a weird exception here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, but that was already happening before, nothing new, and I didn't want to add extra noise and tests, as this PR is already quite potentially breaking.

Copy link
Contributor

@jcar87 jcar87 left a comment

Choose a reason for hiding this comment

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

LGTM!

@memsharded memsharded merged commit ec60f1f into conan-io:develop Jan 5, 2023
@memsharded memsharded deleted the fix/cmake_layout_single_config branch January 5, 2023 10:55
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.

[bug] conan_toolchain.cmake is shared by both build_types
4 participants