Skip to content

Conversation

@uilianries
Copy link
Member

@uilianries uilianries commented Oct 18, 2019

Based on Apple Framework support, now all recipes using exe_link_flags for OSX framework should use cpp_info.frameworks instead.

closes #108

Wiki:

#KB-H033: "APPLE FRAMEWORK"

When liking Apple frameworks into your current recipe, instead of self.cpp_info.shared_link_flags, use self.cpp_info.frameworks:

    def package_info(self):
        self.cpp_info.frameworks.append("CoreAudio")

@uilianries uilianries changed the title Sse cpp_info.frameworks instead of cpp_info.exe_link_flags Use cpp_info.frameworks instead of cpp_info.exe_link_flags Oct 18, 2019
@uilianries
Copy link
Member Author

All conflicts has been solved.


@run_test("KB-H033", output)
def test(out):
if "cpp_info.shared_link_flags" in conanfile_content and "-framework" in conanfile_content:
Copy link
Contributor

Choose a reason for hiding this comment

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

that might trigger false positives, need to reduce scope of 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.

can you elaborate some idea?

Copy link
Contributor

Choose a reason for hiding this comment

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

having something like:

self.cpp_info.shared_link_flags = ["-B,Symbolic"]
...
tools.replace_in_file("Makefile", "-framework Foundation", "-framework CoreFoundation")

will result in false positive I believe

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.

[conan center] advice to use cpp_info.frameworks instead of cpp_info.exe_link_flags

2 participants