diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2011-11-15 17:54:18 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2011-11-15 17:54:18 (GMT) |
commit | d3225c4f39de1ad6e10307466358d76649215141 (patch) | |
tree | 0e6243eecbc02ee45a4b08d38887446fcb06ddad /hl/fortran | |
parent | ab7b2c0fc04e2d2462818df23b0a7507d6e1679c (diff) | |
download | hdf5-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.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 |