Skip to content

Commit

Permalink
mysql-connector-cpp: tidy system_libs
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Sep 9, 2024
1 parent 3b0ea6b commit 4d3c98c
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions recipes/mysql-connector-cpp/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,16 +153,12 @@ def package_info(self):

if self.settings.os == "Windows":
self.cpp_info.system_libs.extend(["dnsapi", "ws2_32"])
elif self.settings.os != "FreeBSD":
self.cpp_info.system_libs.append("resolv")
if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs.extend(["m", "pthread", "dl"])
if self.settings.os == "SunOS":
self.cpp_info.system_libs.append(["socket", "nsl"])
if self.settings.os not in ["Windows", "FreeBSD"]:
self.cpp_info.system_libs.append("resolv")

if not self.options.shared:
self.cpp_info.defines = ["MYSQL_STATIC", "STATIC_CONCPP"]


if is_apple_os(self) or self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs.extend(["resolv"])
if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs.extend(["m", "pthread", "dl"])

0 comments on commit 4d3c98c

Please sign in to comment.