From 44fd0803e32854282023e12e0e68f2c998ab0dac Mon Sep 17 00:00:00 2001 From: SpaceIm <30052553+SpaceIm@users.noreply.github.com> Date: Tue, 14 Nov 2023 09:14:06 +0300 Subject: [PATCH] workaround for https://github.com/conan-io/conan/issues/13560 --- recipes/msdfgen/all/conanfile.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/recipes/msdfgen/all/conanfile.py b/recipes/msdfgen/all/conanfile.py index 7f7ed7e2c26c1..db644ad170a16 100644 --- a/recipes/msdfgen/all/conanfile.py +++ b/recipes/msdfgen/all/conanfile.py @@ -80,6 +80,10 @@ def generate(self): tc.cache_variables["BUILD_SHARED_LIBS"] = self.options.shared if Version(self.version) >= "1.11": tc.cache_variables["MSDFGEN_DYNAMIC_RUNTIME"] = not is_msvc_static_runtime(self) + if self.settings.os == "Linux": + # Workaround for https://github.com/conan-io/conan/issues/13560 + libdirs_host = [l for dependency in self.dependencies.host.values() for l in dependency.cpp_info.aggregated_components().libdirs] + tc.variables["CMAKE_BUILD_RPATH"] = ";".join(libdirs_host) tc.generate() deps = CMakeDeps(self) deps.generate()