Skip to content

Commit

Permalink
apr-util: fix Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
valgur committed Jan 8, 2024
1 parent eb4e0fd commit 039c0b4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion recipes/apr-util/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,11 @@ def generate(self):
tc.variables["APR_HAS_LDAP"] = self.options.with_ldap
apr_info = self.dependencies["apr"].cpp_info.aggregated_components()
tc.variables["APR_INCLUDE_DIR"] = apr_info.includedir.replace("\\", "/")
tc.variables["APR_LIBRARIES"] = ";".join(apr_info.libs)
libdir = apr_info.libdir.replace("\\", "/")
tc.variables["APR_LIBRARIES"] = ";".join(f"{libdir}/{lib}.lib" for lib in apr_info.libs)
tc.generate()
deps = CMakeDeps(self)
deps.set_property("expat", "cmake_find_mode", "module")
deps.generate()
else:
if not cross_building(self):
Expand Down

0 comments on commit 039c0b4

Please sign in to comment.