-
Notifications
You must be signed in to change notification settings - Fork 46
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
Use cpp_info.frameworks instead of cpp_info.exe_link_flags #113
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Uilian Ries <uilianries@gmail.com>
All conflicts has been solved. |
Signed-off-by: Uilian Ries <uilianries@gmail.com>
…o hook/osx-frameworks
Signed-off-by: Uilian Ries <uilianries@gmail.com>
@@ -276,6 +277,11 @@ def test(out): | |||
out.error("The 'RunEnvironment()' build helper is no longer needed. " | |||
"It has been integrated into the self.run(..., run_environment=True)") | |||
|
|||
@run_test("KB-H033", output) | |||
def test(out): | |||
if "cpp_info.shared_link_flags" in conanfile_content and "-framework" in conanfile_content: |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Based on Apple Framework support, now all recipes using
exe_link_flags
for OSX framework should usecpp_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
, useself.cpp_info.frameworks
: