Skip to content

Commit

Permalink
Account for the name of the static library on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
jwillikers committed Mar 18, 2024
1 parent ac8ce9f commit 89275d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion recipes/freetype/meson/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ def package_info(self):
self.cpp_info.set_property("cmake_target_aliases", ["freetype"]) # other possible target name in upstream config file
self.cpp_info.set_property("cmake_build_modules", [self._module_vars_rel_path])
self.cpp_info.set_property("pkg_config_name", "freetype2")
self.cpp_info.libs = ["freetype"]
self.cpp_info.libs = ["libfreetype.a" if self.settings.os == "Windows" and not self.options.shared else "freetype"]
if self.settings.os in ["Linux", "FreeBSD"]:
self.cpp_info.system_libs.append("m")
self.cpp_info.includedirs.append(os.path.join("include", "freetype2"))
Expand Down

0 comments on commit 89275d0

Please sign in to comment.