summaryrefslogtreecommitdiffstats
path: root/config/cmake_ext_mod
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-11 21:58:59 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-11 21:58:59 (GMT)
commit8ef8f5fda952540dc18a43ccf65597089db175f9 (patch)
tree9c3013b685e1d2750c75a1d6a7fc53391a39cb73 /config/cmake_ext_mod
parent34ff52bd1a3c6eb4a737b92c7f36bdd0109e6ddc (diff)
downloadhdf5-8ef8f5fda952540dc18a43ccf65597089db175f9.zip
hdf5-8ef8f5fda952540dc18a43ccf65597089db175f9.tar.gz
hdf5-8ef8f5fda952540dc18a43ccf65597089db175f9.tar.bz2
HDFFV-10979 fix global name clash
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r--config/cmake_ext_mod/HDFMacros.cmake5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake
index 148e9d7..d1d9a6c 100644
--- a/config/cmake_ext_mod/HDFMacros.cmake
+++ b/config/cmake_ext_mod/HDFMacros.cmake
@@ -372,8 +372,13 @@ macro (HDF_DIR_PATHS package_prefix)
endif ()
endif ()
+ # Always use full RPATH, i.e. don't skip the full RPATH for the build tree
set (CMAKE_SKIP_BUILD_RPATH FALSE)
+ # when building, don't use the install RPATH already
+ # (but later on when installing)
set (CMAKE_INSTALL_RPATH_USE_LINK_PATH FALSE)
+ # add the automatically determined parts of the RPATH
+ # which point to directories outside the build tree to the install RPATH
set (CMAKE_BUILD_WITH_INSTALL_RPATH ON)
if (APPLE)
set (CMAKE_INSTALL_NAME_DIR "@rpath")