summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-11-15 17:53:00 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-11-15 17:53:00 (GMT)
commitec688f92b94b9b6bdcfdc63058aef41fc5d97c0c (patch)
tree430c8551a68ab9a47cb41f1b7ff7a3e09cde5617 /fortran
parent4012699e7c8482178c5a01fc6848b952b22a5fcd (diff)
downloadhdf5-ec688f92b94b9b6bdcfdc63058aef41fc5d97c0c.zip
hdf5-ec688f92b94b9b6bdcfdc63058aef41fc5d97c0c.tar.gz
hdf5-ec688f92b94b9b6bdcfdc63058aef41fc5d97c0c.tar.bz2
[svn-r21763] HDFFV-7798: CMake on linux. Corrected path component in fortran/src and hl/fortran/src and the install command.
Diffstat (limited to 'fortran')
-rw-r--r--fortran/src/CMakeLists.txt27
1 files changed, 19 insertions, 8 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt
index ec4d7d1..9a3b56c 100644
--- a/fortran/src/CMakeLists.txt
+++ b/fortran/src/CMakeLists.txt
@@ -243,14 +243,25 @@ INSTALL (
fortheaders
)
-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