diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-11-15 17:53:00 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-11-15 17:53:00 (GMT) |
commit | ec688f92b94b9b6bdcfdc63058aef41fc5d97c0c (patch) | |
tree | 430c8551a68ab9a47cb41f1b7ff7a3e09cde5617 /hl | |
parent | 4012699e7c8482178c5a01fc6848b952b22a5fcd (diff) | |
download | hdf5-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 'hl')
-rw-r--r-- | hl/fortran/src/CMakeLists.txt | 27 |
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 |