Skip to content

Commit 44fd080

Browse files
committed
workaround for conan-io/conan#13560
1 parent e8b7cef commit 44fd080

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

recipes/msdfgen/all/conanfile.py

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ def generate(self):
8080
tc.cache_variables["BUILD_SHARED_LIBS"] = self.options.shared
8181
if Version(self.version) >= "1.11":
8282
tc.cache_variables["MSDFGEN_DYNAMIC_RUNTIME"] = not is_msvc_static_runtime(self)
83+
if self.settings.os == "Linux":
84+
# Workaround for https://github.com/conan-io/conan/issues/13560
85+
libdirs_host = [l for dependency in self.dependencies.host.values() for l in dependency.cpp_info.aggregated_components().libdirs]
86+
tc.variables["CMAKE_BUILD_RPATH"] = ";".join(libdirs_host)
8387
tc.generate()
8488
deps = CMakeDeps(self)
8589
deps.generate()

0 commit comments

Comments
 (0)