diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2010-08-10 20:09:19 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2010-08-10 20:09:19 (GMT) |
commit | 2a3349fc21653f9896074dac8295a4146eaceb70 (patch) | |
tree | 2a02c2e5ecc8f49f888fbe908e96ea635bdf061f /hl | |
parent | a48caa2db518172450da32c7e6830cafcf16d98f (diff) | |
download | hdf5-2a3349fc21653f9896074dac8295a4146eaceb70.zip hdf5-2a3349fc21653f9896074dac8295a4146eaceb70.tar.gz hdf5-2a3349fc21653f9896074dac8295a4146eaceb70.tar.bz2 |
[svn-r19222] Move hl fortran ADD_SUBDIRECTORY to right after fortran ADD_SUBDIRECTORY. This fixes a problem with compiler generated files not including target module directory on some linux machines.
Corrected minor format/location of commands.
Tested: local linux
Diffstat (limited to 'hl')
-rw-r--r-- | hl/CMakeLists.txt | 5 | ||||
-rw-r--r-- | hl/fortran/src/CMakeLists.txt | 6 |
2 files changed, 2 insertions, 9 deletions
diff --git a/hl/CMakeLists.txt b/hl/CMakeLists.txt index bc7c652..2871734 100644 --- a/hl/CMakeLists.txt +++ b/hl/CMakeLists.txt @@ -32,11 +32,6 @@ IF (NOT HDF5_EXTERNALLY_CONFIGURED) ENDIF (BUILD_TESTING) ENDIF (NOT HDF5_EXTERNALLY_CONFIGURED) -#-- Build the High Level Fortran source codes -IF (HDF5_BUILD_FORTRAN) - ADD_SUBDIRECTORY (fortran) -ENDIF (HDF5_BUILD_FORTRAN) - IF (HDF5_BUILD_CPP_LIB) ADD_SUBDIRECTORY (${HDF5_HL_SOURCE_DIR}/c++ ${HDF5_HL_BINARY_DIR}/c++) ENDIF (HDF5_BUILD_CPP_LIB) diff --git a/hl/fortran/src/CMakeLists.txt b/hl/fortran/src/CMakeLists.txt index 71302f3..07fcb30 100644 --- a/hl/fortran/src/CMakeLists.txt +++ b/hl/fortran/src/CMakeLists.txt @@ -71,15 +71,13 @@ IF (WIN32) APPEND PROPERTY COMPILE_DEFINITIONS HDF5F90_WINDOWS ) - SET_TARGET_PROPERTIES (${HDF5_HL_F90_LIB_TARGET} PROPERTIES LINKER_LANGUAGE Fortran) ENDIF (WIN32) -SET_GLOBAL_VARIABLE (HDF5_LIBRARIES_TO_EXPORT - "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_F90_LIB_TARGET}" -) +SET_TARGET_PROPERTIES (${HDF5_HL_F90_LIB_TARGET} PROPERTIES LINKER_LANGUAGE Fortran) TARGET_LINK_LIBRARIES (${HDF5_HL_F90_LIB_TARGET} ${HDF5_HL_F90_C_LIB_TARGET} ${HDF5_F90_LIB_TARGET} ) +SET_GLOBAL_VARIABLE (HDF5_LIBRARIES_TO_EXPORT "${HDF5_LIBRARIES_TO_EXPORT};${HDF5_HL_F90_LIB_TARGET}") 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}) |