Skip to content

Commit

Permalink
explicit pkgconfig name
Browse files Browse the repository at this point in the history
  • Loading branch information
SpaceIm committed May 13, 2022
1 parent edcd9ef commit 220ddba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes/zlib/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,10 @@ def package(self):
cmake.install()

def package_info(self):
self.cpp_info.set_property("cmake_find_mode", "both")
self.cpp_info.set_property("cmake_file_name", "ZLIB")
self.cpp_info.set_property("cmake_target_name", "ZLIB::ZLIB")
self.cpp_info.set_property("cmake_find_mode", "both")
self.cpp_info.set_property("pkg_config_name", "zlib")
self.cpp_info.libs = ["zlib" if is_msvc(self) or self._is_clang_cl else "z"]

self.cpp_info.names["cmake_find_package"] = "ZLIB"
Expand Down

0 comments on commit 220ddba

Please sign in to comment.