summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-09-26 17:05:43 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-09-26 17:05:43 (GMT)
commit5527dbfac2d0e4b0bb48a3f479a1a9dfd5dddb79 (patch)
tree119cf524e9c4f29121e715ce31b9473a03b185e0 /config
parent01e40b31fe0b9fd318f5b6ceb00c6d46f7c91c9a (diff)
downloadhdf5-5527dbfac2d0e4b0bb48a3f479a1a9dfd5dddb79.zip
hdf5-5527dbfac2d0e4b0bb48a3f479a1a9dfd5dddb79.tar.gz
hdf5-5527dbfac2d0e4b0bb48a3f479a1a9dfd5dddb79.tar.bz2
Add extra path option for build location
Diffstat (limited to 'config')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index bd9d62e..bb16946 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -363,9 +363,9 @@ 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}")
+ set (CMAKE_INSTALL_RPATH "@executable_path/../${${package_prefix}_INSTALL_LIB_DIR}:@executable_path/")
else ()
- set (CMAKE_INSTALL_RPATH "\$ORIGIN/../${${package_prefix}_INSTALL_LIB_DIR}")
+ set (CMAKE_INSTALL_RPATH "\$ORIGIN/../${${package_prefix}_INSTALL_LIB_DIR}:\$ORIGIN/")
endif ()
if (DEFINED ADDITIONAL_CMAKE_PREFIX_PATH AND EXISTS "${ADDITIONAL_CMAKE_PREFIX_PATH}")