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

MSBuildDeps handle build_requires executables #9686

Merged

Conversation

memsharded
Copy link
Member

@memsharded memsharded commented Sep 28, 2021

Changelog: Feature: MSBuildDeps generator learned how to handle build_requires to use executables from them.
Docs: conan-io/docs#2248

Close #9545

@memsharded memsharded marked this pull request as ready for review September 28, 2021 23:03
Copy link
Contributor

@lasote lasote left a comment

Choose a reason for hiding this comment

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

cool!

for dep in build_req:
dep_name = dep.ref.name
dep_name = dep_name.replace(".", "_") + "_build"
cpp_info = DepCppInfo(dep.cpp_info) # To account for automatic component aggregation
Copy link
Contributor

Choose a reason for hiding this comment

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

We could start using the new_cpp_info here and calling aggregate_components for that, the same for the host/test

Copy link
Member Author

Choose a reason for hiding this comment

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

Agree, lets try it.
However, we should probably refactor that, so we can pick a name for new_cpp_info that will survive in the transition to 2.0

@memsharded memsharded merged commit f3a6e13 into conan-io:develop Sep 29, 2021
@memsharded memsharded deleted the feature/msbuilddeps_build_context branch September 29, 2021 10:16
slietzau pushed a commit to slietzau/conan-center-index that referenced this pull request Dec 14, 2021
This prevents a where the MSBuildDeps generator would generate invalid entries in the property sheet.
Since conan-io/conan#9686 the property sheet uses variable references and assumes the include path is relative to the package dir.
conan-center-bot pushed a commit to conan-io/conan-center-index that referenced this pull request Dec 18, 2021
* [hdf5/all] Use a relative include path

This prevents a where the MSBuildDeps generator would generate invalid entries in the property sheet.
Since conan-io/conan#9686 the property sheet uses variable references and assumes the include path is relative to the package dir.

* Update recipes/hdf5/all/conanfile.py

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
miklelappo pushed a commit to miklelappo/conan-center-index that referenced this pull request Feb 9, 2022
* [hdf5/all] Use a relative include path

This prevents a where the MSBuildDeps generator would generate invalid entries in the property sheet.
Since conan-io/conan#9686 the property sheet uses variable references and assumes the include path is relative to the package dir.

* Update recipes/hdf5/all/conanfile.py

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>

Co-authored-by: SpaceIm <30052553+SpaceIm@users.noreply.github.com>
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] cross-compile visual_studio generator does not use build requirements bin folders
2 participants