Skip to content

Commit

Permalink
Fix test package on Mac with, add frameworks conditionally
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex Trotta committed Jan 14, 2024
1 parent 8119721 commit 2bcd620
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion recipes/tk/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,10 @@ def package_info(self):
tk_suffix = ""
self.cpp_info.libs = [f"tk{lib_infix}{tk_suffix}", f"tkstub{lib_infix}"]
if self.settings.os == "Macos":
self.cpp_info.frameworks = ["CoreFoundation", "Cocoa", "Carbon", "IOKit", "Quartz"]
self.cpp_info.frameworks = ["CoreFoundation", "Cocoa", "Carbon", "IOKit"]
if Version(self.version) >= "8.6.13":
self.cpp_info.frameworks += ["Quartz", "UniformTypeIdentifiers"]
self.cpp_info.exelinkflags = ["-ObjC"]
elif self.settings.os == "Windows":
self.cpp_info.system_libs = [
"netapi32",
Expand Down

0 comments on commit 2bcd620

Please sign in to comment.