summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-09-26 20:12:44 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-09-26 20:12:44 (GMT)
commitd26bb4d26ce5a23804a80c16dcb53e5f3eb957e4 (patch)
tree063a4428027af95930e725618c5b951a69e74564 /config
parentebec5c6117375f616196ea0bc11419ce8414ba24 (diff)
downloadhdf5-d26bb4d26ce5a23804a80c16dcb53e5f3eb957e4.zip
hdf5-d26bb4d26ce5a23804a80c16dcb53e5f3eb957e4.tar.gz
hdf5-d26bb4d26ce5a23804a80c16dcb53e5f3eb957e4.tar.bz2
HDFFV-10594 - mac must be space separated
Diffstat (limited to 'config')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake7
1 files changed, 6 insertions, 1 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index bb16946..147ae2f 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -363,7 +363,12 @@ macro (HDF_DIR_PATHS package_prefix)
set (CMAKE_BUILD_WITH_INSTALL_RPATH ON)
if (APPLE)
set (CMAKE_INSTALL_NAME_DIR "@rpath")
- set (CMAKE_INSTALL_RPATH "@executable_path/../${${package_prefix}_INSTALL_LIB_DIR}:@executable_path/")
+ set (CMAKE_INSTALL_RPATH
+ "@executable_path/../${${package_prefix}_INSTALL_LIB_DIR}"
+ "@executable_path/"
+ "@loader_path/../${${package_prefix}_INSTALL_LIB_DIR}"
+ "@loader_path/"
+ )
else ()
set (CMAKE_INSTALL_RPATH "\$ORIGIN/../${${package_prefix}_INSTALL_LIB_DIR}:\$ORIGIN/")
endif ()