mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-03-31 17:10:47 +08:00
[svn-r18914] Added fortran library to list of library links.
Tested: Windows, local linux
This commit is contained in:
parent
652a1c649f
commit
006aa82452
@ -4,14 +4,14 @@ PROJECT(HDF5_HL_F90_SRC C CXX Fortran)
|
||||
#-----------------------------------------------------------------------------
|
||||
# Setup include Directories
|
||||
#-----------------------------------------------------------------------------
|
||||
INCLUDE_DIRECTORIES (${HDF5_F90_SOURCE_DIR}/src)
|
||||
INCLUDE_DIRECTORIES (${HDF5_F90_BINARY_DIR})
|
||||
INCLUDE_DIRECTORIES (${HDF5_F90_SRC_BINARY_DIR})
|
||||
|
||||
INCLUDE_DIRECTORIES (${HDF5_HL_F90_SRC_SOURCE_DIR})
|
||||
INCLUDE_DIRECTORIES (${HDF5_HL_SOURCE_DIR}/src)
|
||||
|
||||
INCLUDE_DIRECTORIES (${CMAKE_Fortran_MODULE_DIRECTORY} ${HDF5_F90_BINARY_DIR} ${HDF5_F90_SOURCE_DIR}/src)
|
||||
INCLUDE_DIRECTORIES (
|
||||
${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
${HDF5_F90_BINARY_DIR}
|
||||
${HDF5_F90_SOURCE_DIR}/src
|
||||
${HDF5_F90_SRC_BINARY_DIR}
|
||||
${HDF5_HL_F90_SRC_SOURCE_DIR}
|
||||
${HDF5_HL_SOURCE_DIR}/src
|
||||
)
|
||||
LINK_DIRECTORIES (
|
||||
${CMAKE_Fortran_MODULE_DIRECTORY}
|
||||
${HDF5_HL_F90_BINARY_DIR}
|
||||
@ -43,7 +43,6 @@ TARGET_LINK_LIBRARIES (${HDF5_HL_F90_C_LIB_TARGET}
|
||||
)
|
||||
#
|
||||
# To Ensure that generated files are built, we must force a dependency
|
||||
#
|
||||
ADD_DEPENDENCIES(${HDF5_HL_F90_C_LIB_TARGET} ${HDF5_F90_LIB_TARGET} ${HDF5_F90_C_LIB_TARGET})
|
||||
|
||||
SET_GLOBAL_VARIABLE (HDF5_LIBRARIES_TO_EXPORT
|
||||
@ -79,6 +78,7 @@ SET_GLOBAL_VARIABLE (HDF5_LIBRARIES_TO_EXPORT
|
||||
)
|
||||
TARGET_LINK_LIBRARIES (${HDF5_HL_F90_LIB_TARGET}
|
||||
${HDF5_HL_F90_C_LIB_TARGET}
|
||||
${HDF5_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})
|
||||
|
Loading…
x
Reference in New Issue
Block a user