summaryrefslogtreecommitdiffstats
path: root/hl/fortran
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-11-15 17:54:18 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-11-15 17:54:18 (GMT)
commitd3225c4f39de1ad6e10307466358d76649215141 (patch)
tree0e6243eecbc02ee45a4b08d38887446fcb06ddad /hl/fortran
parentab7b2c0fc04e2d2462818df23b0a7507d6e1679c (diff)
downloadhdf5-d3225c4f39de1ad6e10307466358d76649215141.zip
hdf5-d3225c4f39de1ad6e10307466358d76649215141.tar.gz
hdf5-d3225c4f39de1ad6e10307466358d76649215141.tar.bz2
[svn-r21764] HDFFV-7798: CMake on linux. Corrected path component in fortran/src and hl/fortran/src and the install command.
Diffstat (limited to 'hl/fortran')
-rw-r--r--hl/fortran/src/CMakeLists.txt27
1 files changed, 19 insertions, 8 deletions
diff --git a/hl/fortran/src/CMakeLists.txt b/hl/fortran/src/CMakeLists.txt
index 1f37def..3febbeb 100644
--- a/hl/fortran/src/CMakeLists.txt
+++ b/hl/fortran/src/CMakeLists.txt
@@ -71,14 +71,25 @@ SET_TARGET_PROPERTIES (${HDF5_HL_F90_LIB_TARGET} PROPERTIES FOLDER libraries/hl/
#-----------------------------------------------------------------------------
# Add file(s) to CMake Install
#-----------------------------------------------------------------------------
-INSTALL (
- DIRECTORY
- ${CMAKE_Fortran_MODULE_DIRECTORY}/\${BUILD_TYPE}/
- DESTINATION
- ${HDF5_INSTALL_INCLUDE_DIR}/fortran
- COMPONENT
- fortheaders
-)
+IF (WIN32 AND NOT CYGWIN)
+ INSTALL (
+ DIRECTORY
+ ${CMAKE_Fortran_MODULE_DIRECTORY}/\${BUILD_TYPE}/
+ DESTINATION
+ ${HDF5_INSTALL_INCLUDE_DIR}/fortran
+ COMPONENT
+ fortheaders
+ )
+ELSE (WIN32 AND NOT CYGWIN)
+ INSTALL (
+ DIRECTORY
+ ${CMAKE_Fortran_MODULE_DIRECTORY}/
+ DESTINATION
+ ${HDF5_INSTALL_INCLUDE_DIR}/fortran
+ COMPONENT
+ fortheaders
+ )
+ENDIF (WIN32 AND NOT CYGWIN)
#-----------------------------------------------------------------------------
# Add Target(s) to CMake Install for import into other projects