diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-11-11 12:26:39 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-11-11 12:26:39 (GMT) |
commit | 8758d5698d7f80f465e436f58e93899407f445ae (patch) | |
tree | bcd9db21b11bc7b4dd5c54d76e22fe1cb5152c57 /config/cmake_ext_mod | |
parent | c0c0b6b47ffaebd158da055d04b9e9f88d8730ef (diff) | |
download | hdf5-8758d5698d7f80f465e436f58e93899407f445ae.zip hdf5-8758d5698d7f80f465e436f58e93899407f445ae.tar.gz hdf5-8758d5698d7f80f465e436f58e93899407f445ae.tar.bz2 |
Correct TARGET variable and CMake config file location
Diffstat (limited to 'config/cmake_ext_mod')
-rw-r--r-- | config/cmake_ext_mod/HDFMacros.cmake | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/config/cmake_ext_mod/HDFMacros.cmake b/config/cmake_ext_mod/HDFMacros.cmake index 0359670..8ca8159 100644 --- a/config/cmake_ext_mod/HDFMacros.cmake +++ b/config/cmake_ext_mod/HDFMacros.cmake @@ -353,12 +353,13 @@ macro (HDF_DIR_PATHS package_prefix) set (${package_prefix}_INSTALL_FWRK_DIR ${CMAKE_INSTALL_FRAMEWORK_PREFIX}) endif () set (${package_prefix}_INSTALL_DATA_DIR share) - set (${package_prefix}_INSTALL_CMAKE_DIR share/cmake) else () set (${package_prefix}_INSTALL_DATA_DIR ".") - set (${package_prefix}_INSTALL_CMAKE_DIR cmake) endif () endif () + if (NOT ${package_prefix}_INSTALL_CMAKE_DIR) + set (${package_prefix}_INSTALL_CMAKE_DIR share/cmake) + endif () # Always use full RPATH, i.e. don't skip the full RPATH for the build tree set (CMAKE_SKIP_BUILD_RPATH FALSE) |