summaryrefslogtreecommitdiffstats
path: root/config
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2018-05-03 15:44:57 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2018-05-03 15:44:57 (GMT)
commit01a77cbfb17d8802a9f135bb95a2b2ec57f75410 (patch)
tree5ddb626fd46c8f784b890f5a575f0ab5eccfe2c6 /config
parent1ab0814a4320eb8a4b93a85048419302218aeb34 (diff)
downloadhdf5-01a77cbfb17d8802a9f135bb95a2b2ec57f75410.zip
hdf5-01a77cbfb17d8802a9f135bb95a2b2ec57f75410.tar.gz
hdf5-01a77cbfb17d8802a9f135bb95a2b2ec57f75410.tar.bz2
LINK_FLAGS must be separate property sets
Diffstat (limited to 'config')
-rw-r--r--config/cmake/HDF5Macros.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/config/cmake/HDF5Macros.cmake b/config/cmake/HDF5Macros.cmake
index e472a67..7048db6 100644
--- a/config/cmake/HDF5Macros.cmake
+++ b/config/cmake/HDF5Macros.cmake
@@ -33,8 +33,10 @@ macro (H5_SET_LIB_OPTIONS libtarget libname libtype libpackage)
if (APPLE)
option (HDF5_BUILD_WITH_INSTALL_NAME "Build with library install_name set to the installation path" OFF)
if (HDF5_BUILD_WITH_INSTALL_NAME)
- set_target_properties (${libtarget} PROPERTIES
+ set_property(TARGET ${libtarget} APPEND_STRING PROPERTY
LINK_FLAGS "-current_version ${HDF5_PACKAGE_VERSION} -compatibility_version ${HDF5_PACKAGE_VERSION}"
+ )
+ set_target_properties (${libtarget} PROPERTIES
INSTALL_NAME_DIR "${CMAKE_INSTALL_PREFIX}/lib"
BUILD_WITH_INSTALL_RPATH ${HDF5_BUILD_WITH_INSTALL_NAME}
)