From 3beacd3ffcd22d32432a7f6723ac0138102ea31f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Leclercq?= Date: Wed, 9 Feb 2022 16:57:12 +0100 Subject: [PATCH] Build: set rpath to origin --- plugins/Assimp/xmake.lua | 1 + xmake.lua | 1 + 2 files changed, 2 insertions(+) diff --git a/plugins/Assimp/xmake.lua b/plugins/Assimp/xmake.lua index ecb690f97..525ee4c04 100644 --- a/plugins/Assimp/xmake.lua +++ b/plugins/Assimp/xmake.lua @@ -11,6 +11,7 @@ if has_config("assimp") then target("PluginAssimp") set_kind("shared") set_group("Plugins") + add_rpathdirs("$ORIGIN") add_deps("NazaraUtility") add_packages("assimp") diff --git a/xmake.lua b/xmake.lua index 077341768..6e813f275 100644 --- a/xmake.lua +++ b/xmake.lua @@ -172,6 +172,7 @@ for name, module in pairs(modules) do set_group("Modules") add_rules("embed_resources") + add_rpathdirs("$ORIGIN") if module.Deps then add_deps(table.unpack(module.Deps))