Skip to content

Commit

Permalink
system libs for FreeBSD and iOS/tvOS/watchOS
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Jul 17, 2021
1 parent 2ec8196 commit 2f070cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/abseil/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def _create_components_file_from_cmake_target_file(self, absl_target_file_path):
if dependency.startswith("absl::"): # abseil targets
components[potential_lib_name].setdefault("requires", []).append(dependency.replace("absl::", "absl_"))
else: # system libs or frameworks
if self.settings.os == "Linux":
if self.settings.os in ["Linux", "FreeBSD"]:
if dependency == "Threads::Threads":
components[potential_lib_name].setdefault("system_libs", []).append("pthread")
elif "-lrt" in dependency:
Expand All @@ -119,7 +119,7 @@ def _create_components_file_from_cmake_target_file(self, absl_target_file_path):
for system_lib in ["bcrypt", "advapi32", "dbghelp"]:
if system_lib in dependency:
components[potential_lib_name].setdefault("system_libs", []).append(system_lib)
elif self.settings.os == "Macos":
elif tools.is_apple_os(self.settings.os):
for framework in ["CoreFoundation"]:
if framework in dependency:
components[potential_lib_name].setdefault("frameworks", []).append(framework)
Expand Down

0 comments on commit 2f070cb

Please sign in to comment.