diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-12-17 15:08:54 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-12-17 15:08:54 (GMT) |
commit | 59c07e8859b27c422e9aa93df8d979c12d479ed4 (patch) | |
tree | 76be1ee41d665c11cabd5108f9abd6ae86c8477c /config/cmake_ext_mod/HDFMacros.cmake | |
parent | 6a9ba1401a65834207c14983d6e51d6a000591bb (diff) | |
download | hdf5-59c07e8859b27c422e9aa93df8d979c12d479ed4.zip hdf5-59c07e8859b27c422e9aa93df8d979c12d479ed4.tar.gz hdf5-59c07e8859b27c422e9aa93df8d979c12d479ed4.tar.bz2 |
Minor corrections to CMake functions
Diffstat (limited to 'config/cmake_ext_mod/HDFMacros.cmake')
-rw-r--r-- | config/cmake_ext_mod/HDFMacros.cmake | 5 |
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") |