Skip to content

Commit

Permalink
libpq: pgcommon requires libm
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Dec 31, 2023
1 parent 1e2e8df commit b72e1f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions recipes/libpq/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,8 @@ def package_info(self):
self.cpp_info.components["pgport"].libs = ["pgport", "pgport_shlib"]
if self.settings.os == "Windows":
self.cpp_info.components["pgport"].system_libs = ["ws2_32"]
elif self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.components["pgport"].system_libs = ["m"]
self.cpp_info.components["pgcommon"].requires.append("pgport")

if self.settings.os in ["Linux", "FreeBSD"]:
Expand Down

0 comments on commit b72e1f7

Please sign in to comment.