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

CMakeDeps improvements #9015

Merged

Conversation

lasote
Copy link
Contributor

@lasote lasote commented May 27, 2021

Changelog: Fix: CMakeDeps generator: The transitive requirements for a build_require are not included in the xxx-config.cmake files generated.
Docs: omit

@lasote lasote marked this pull request as ready for review May 28, 2021 09:26
@@ -83,7 +97,7 @@ def get_component_alias(req, comp_name):
if comp_name not in req.new_cpp_info.components:
# foo::foo might be referencing the root cppinfo
if req.ref.name == comp_name:
return comp_name
return get_target_namespace(req)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was a bug

@@ -47,6 +47,7 @@ def template(self):

# Only the first installed configuration is included to avoid the collission
foreach(_BUILD_MODULE {{ '${' + pkg_name + '_BUILD_MODULES_PATHS' + config_suffix + '}' }} )
conan_message(STATUS "Conan: Including build module from '${_BUILD_MODULE}'")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is useful

@memsharded memsharded added this to the 1.37 milestone May 28, 2021
@memsharded memsharded merged commit 6d362f3 into conan-io:develop May 28, 2021
czoido added a commit to conan-io/docs that referenced this pull request May 31, 2021
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.

None yet

2 participants