Skip to content

Conversation

memsharded
Copy link
Member

Changelog: (Feature | Fix | Bugfix): Describe here your pull request
Docs: https://github.com/conan-io/docs/pull/XXXX

Close #18613

@@ -50,6 +50,9 @@ def initialize_conanfile_profile(conanfile, profile_build, profile_host, base_co
else:
conanfile.settings_target = parent.settings_target.copy()

if parent is not None:
conanfile.settings_consumer = getattr(parent, "settings_consumer", parent.settings)
Copy link
Member Author

Choose a reason for hiding this comment

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

Need to check this stops at the "linkage" step, executable or shared library which is the one that will need the compiler flags.
This bring the use case of a package being consumed by 2 different packages, one built with one compiler like LLVM/clang and another built with another (binary compatible) compiler such as msvc. Each consuming package would need different flags, but the package_info can only provide 1 set of flags.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[feedback] compatibility can't handle cpp_info cxxflags
1 participant