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))