From 228fe8fb347464ad9cc0bd41db13c0c0e285eab5 Mon Sep 17 00:00:00 2001 From: Meghan Jones Date: Wed, 23 Feb 2022 14:42:27 -0500 Subject: [PATCH] Use @loader_path for building the bundle --- cmake/dist/CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/dist/CMakeLists.txt b/cmake/dist/CMakeLists.txt index 92343499ec3..532e7143e1e 100644 --- a/cmake/dist/CMakeLists.txt +++ b/cmake/dist/CMakeLists.txt @@ -189,7 +189,7 @@ if (APPLE) set(path \"\${\${default_embedded_path_var}}\") # Embed *.dylib in the lib folder: if(item MATCHES \"[.]dylib\$\") - set(path \"@executable_path/../lib\") + set(path \"@loader_path/../lib\") endif() set(\${default_embedded_path_var} \"\${path}\" PARENT_SCOPE) endfunction(gp_item_default_embedded_path_override)