summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-05-04 19:42:03 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-05-04 19:42:03 (GMT)
commit2ee184118709356cfada5dd510d26148183b9259 (patch)
treea94070b99ccaffc6fee18c2d2bb19cd6e06ed9d5 /CMakeLists.txt
parenta2f52de36df0385588493d4e620c5f6471aa53c0 (diff)
downloadhdf5-2ee184118709356cfada5dd510d26148183b9259.zip
hdf5-2ee184118709356cfada5dd510d26148183b9259.tar.gz
hdf5-2ee184118709356cfada5dd510d26148183b9259.tar.bz2
[svn-r20721] Refactor ext lib import and install.
Add SOVERSION for linux
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt29
1 files changed, 22 insertions, 7 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 13c0df4..3f2ad45 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -743,14 +743,23 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
DESTINATION ${HDF5_INSTALL_EXTLIB_DIR}
COMPONENT libraries
)
- IF (WIN32 AND BUILD_SHARED_LIBS)
+ IF (BUILD_SHARED_LIBS)
+ IF (WIN32)
GET_PROPERTY (ZLIB_IMPLIB TARGET ${ZLIB_LIBRARY} PROPERTY IMPORTLIBRARY_${BLDTYPE})
INSTALL(
FILES ${ZLIB_IMPLIB}
DESTINATION ${HDF5_INSTALL_LIB_DIR}
COMPONENT libraries
)
- ENDIF (WIN32 AND BUILD_SHARED_LIBS)
+ ELSE (WIN32)
+ GET_PROPERTY (ZLIB_SOVERSION TARGET ${ZLIB_LIBRARY} PROPERTY SOVERSION)
+ INSTALL(
+ FILES ${ZLIB_LIB}.${ZLIB_SOVERSION}
+ DESTINATION ${HDF5_INSTALL_LIB_DIR}
+ COMPONENT libraries
+ )
+ ENDIF (WIN32)
+ ENDIF (BUILD_SHARED_LIBS)
ENDIF (HDF5_ENABLE_Z_LIB_SUPPORT AND ZLIB_FOUND)
IF (HDF5_ENABLE_SZIP_SUPPORT AND SZIP_FOUND)
INSTALL (
@@ -764,14 +773,23 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
DESTINATION ${HDF5_INSTALL_EXTLIB_DIR}
COMPONENT libraries
)
- IF (WIN32 AND BUILD_SHARED_LIBS)
+ IF (BUILD_SHARED_LIBS)
+ IF (WIN32)
GET_PROPERTY (SZIP_IMPLIB TARGET ${SZIP_LIBRARY} PROPERTY IMPORTLIBRARY_${BLDTYPE})
INSTALL(
FILES ${SZIP_IMPLIB}
DESTINATION ${HDF5_INSTALL_LIB_DIR}
COMPONENT libraries
)
- ENDIF (WIN32 AND BUILD_SHARED_LIBS)
+ ELSE (WIN32)
+ GET_PROPERTY (SZIP_SOVERSION TARGET ${SZIP_LIBRARY} PROPERTY SOVERSION)
+ INSTALL(
+ FILES ${SZIP_LIB}.${SZIP_SOVERSION}
+ DESTINATION ${HDF5_INSTALL_LIB_DIR}
+ COMPONENT libraries
+ )
+ ENDIF (WIN32)
+ ENDIF (BUILD_SHARED_LIBS)
ENDIF (HDF5_ENABLE_SZIP_SUPPORT AND SZIP_FOUND)
INSTALL (
FILES ${EXTERNAL_HEADER_LIST}
@@ -875,7 +893,6 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
SET (release_files
${release_files}
${HDF5_SOURCE_DIR}/release_docs/INSTALL_Cygwin.txt
- ${HDF5_SOURCE_DIR}/release_docs/INSTALL_MinGW.txt
${HDF5_SOURCE_DIR}/release_docs/INSTALL_VMS.txt
)
ENDIF (WIN32 AND NOT CYGWIN)
@@ -910,8 +927,6 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED)
SET (CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/release_docs/RELEASE.txt")
ENDIF (EXISTS "${HDF5_SOURCE_DIR}/release_docs")
SET (CPACK_PACKAGE_RELOCATABLE TRUE)
- #only needed for cmake 2.8.3
- SET (CPACK_MONOLITHIC_INSTALL 1)
IF (WIN32)
SET (CPACK_NSIS_CONTACT "help@hdfgroup.org")
SET (CPACK_NSIS_MODIFY_PATH ON)