summaryrefslogtreecommitdiffstats
path: root/hl/fortran
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2010-09-20 20:38:35 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2010-09-20 20:38:35 (GMT)
commitb4be8ae3d53cce93077a8a1b0afbff1b3ccd9fec (patch)
tree76e18b78410eb8180430ce9547edf94632e5aaf2 /hl/fortran
parent441f2ed99fa3de57cfd0b913d28645851f6f0af7 (diff)
downloadhdf5-b4be8ae3d53cce93077a8a1b0afbff1b3ccd9fec.zip
hdf5-b4be8ae3d53cce93077a8a1b0afbff1b3ccd9fec.tar.gz
hdf5-b4be8ae3d53cce93077a8a1b0afbff1b3ccd9fec.tar.bz2
[svn-r19434] Correct use of lib, include, bin in INSTALL commands to use proper variables.
Tested: local linux
Diffstat (limited to 'hl/fortran')
-rw-r--r--hl/fortran/src/CMakeLists.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/hl/fortran/src/CMakeLists.txt b/hl/fortran/src/CMakeLists.txt
index f003c49..67871f4 100644
--- a/hl/fortran/src/CMakeLists.txt
+++ b/hl/fortran/src/CMakeLists.txt
@@ -82,6 +82,19 @@ H5_SET_LIB_OPTIONS (${HDF5_HL_F90_LIB_TARGET} ${HDF5_HL_F90_LIB_NAME} ${LIB_TYPE
ADD_DEPENDENCIES (${HDF5_HL_F90_LIB_TARGET} ${HDF5_HL_F90_C_LIB_TARGET})
#-----------------------------------------------------------------------------
+# Add file(s) to CMake Install
+#-----------------------------------------------------------------------------
+
+INSTALL (
+ DIRECTORY
+ ${CMAKE_Fortran_MODULE_DIRECTORY}/\${BUILD_TYPE}/
+ DESTINATION
+ ${HDF5_INSTALL_INCLUDE_DIR}/fortran
+ COMPONENT
+ fortheaders
+)
+
+#-----------------------------------------------------------------------------
# Add Target(s) to CMake Install for import into other projects
#-----------------------------------------------------------------------------
IF (HDF5_EXPORTED_TARGETS)
@@ -91,8 +104,8 @@ IF (HDF5_EXPORTED_TARGETS)
${HDF5_HL_F90_LIB_TARGET}
EXPORT
${HDF5_EXPORTED_TARGETS}
- LIBRARY DESTINATION lib COMPONENT hlfortlibraries
- ARCHIVE DESTINATION lib COMPONENT hlfortlibraries
- RUNTIME DESTINATION bin COMPONENT hlfortlibraries
+ LIBRARY DESTINATION ${HDF5_INSTALL_LIB_DIR} COMPONENT hlfortlibraries
+ ARCHIVE DESTINATION ${HDF5_INSTALL_LIB_DIR} COMPONENT hlfortlibraries
+ RUNTIME DESTINATION ${HDF5_INSTALL_BIN_DIR} COMPONENT hlfortlibraries
)
ENDIF (HDF5_EXPORTED_TARGETS)