Skip to content

Commit

Permalink
cpp-httplib: fix cpp_info.defines
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed Feb 17, 2020
1 parent a6f9059 commit 8f98fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions recipes/cpp-httplib/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ def package_id(self):

def package_info(self):
if self.options.with_openssl:
self.cpp_info.defines("CPPHTTPLIB_OPENSSL_SUPPORT")
self.cpp_info.defines.append("CPPHTTPLIB_OPENSSL_SUPPORT")
if self.options.with_zlib:
self.cpp_info.defines("CPPHTTPLIB_ZLIB_SUPPORT")
self.cpp_info.defines.append("CPPHTTPLIB_ZLIB_SUPPORT")
if self.settings.os == "Linux":
self.cpp_info.system_libs.append("pthread")
self.cpp_info.includedirs = ["include", os.path.join("include", "httplib")]

0 comments on commit 8f98fde

Please sign in to comment.