summaryrefslogtreecommitdiffstats
path: root/hl/fortran
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-07-30 15:18:42 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-07-30 15:18:42 (GMT)
commitfa52a5a44a18782e2bb57c99786c5f156bcb74c6 (patch)
tree15613b6c74c4d01ebf48c1670c5244d2887ca95e /hl/fortran
parentc6ccc94574097b4d12044fe0427156d9035f0856 (diff)
downloadhdf5-fa52a5a44a18782e2bb57c99786c5f156bcb74c6.zip
hdf5-fa52a5a44a18782e2bb57c99786c5f156bcb74c6.tar.gz
hdf5-fa52a5a44a18782e2bb57c99786c5f156bcb74c6.tar.bz2
[svn-r27442] added missing dependencies
Diffstat (limited to 'hl/fortran')
-rw-r--r--hl/fortran/src/CMakeLists.txt26
1 files changed, 6 insertions, 20 deletions
diff --git a/hl/fortran/src/CMakeLists.txt b/hl/fortran/src/CMakeLists.txt
index be7fd6c..0219c22 100644
--- a/hl/fortran/src/CMakeLists.txt
+++ b/hl/fortran/src/CMakeLists.txt
@@ -36,15 +36,6 @@ set_target_properties (H5HL_buildiface PROPERTIES
Fortran_MODULE_DIRECTORY ${CMAKE_Fortran_MODULE_DIRECTORY}
)
-#set (CMD $<TARGET_FILE:H5HL_buildiface>)
-#add_custom_command (
-# OUTPUT ${HDF5_HL_F90_SRC_BINARY_DIR}/H5LTff_gen.F90
-# ${HDF5_HL_F90_SRC_BINARY_DIR}/H5TBff_gen.F90
-# COMMAND ${CMD}
-# WORKING_DIRECTORY ${HDF5_HL_F90_SRC_BINARY_DIR}
-# DEPENDS H5HL_buildiface
-#)
-
#-----------------------------------------------------------------------------
# Setup include Directories
#-----------------------------------------------------------------------------
@@ -52,6 +43,7 @@ INCLUDE_DIRECTORIES (
${HDF5_HL_SRC_DIR}/src
${HDF5_F90_SRC_DIR}/src
${HDF5_F90_BINARY_DIR}
+ ${CMAKE_Fortran_MODULE_DIRECTORY}
)
#-----------------------------------------------------------------------------
@@ -98,12 +90,6 @@ set (HDF5_HL_F90_F_SRCS
set_source_files_properties (${HDF5_HL_F90_F_SRCS} PROPERTIES LANGUAGE Fortran)
-#set_source_files_properties(
-# ${HDF5_HL_F90_SRC_BINARY_DIR}/H5LTff_gen.F90
-# ${HDF5_HL_F90_SRC_BINARY_DIR}/H5TBff_gen.F90
-# PROPERTIES OBJECT_DEPENDS "${HDF5_HL_F90_F_BASE_SRCS}"
-#)
-
set_source_files_properties (
${HDF5_HL_F90_SRC_BINARY_DIR}/H5LTff_gen.F90
${HDF5_HL_F90_SRC_BINARY_DIR}/H5TBff_gen.F90
@@ -121,8 +107,8 @@ add_custom_target (H5HLgen ALL
add_library (${HDF5_HL_F90_LIB_TARGET} ${LIB_TYPE} ${HDF5_HL_F90_F_SRCS})
set (SHARED_LINK_FLAGS " ")
-if (BUILD_SHARED_LIBS)
- if (WIN32)
+if (WIN32)
+ if (BUILD_SHARED_LIBS)
set_property (TARGET ${HDF5_HL_F90_LIB_TARGET}
APPEND PROPERTY COMPILE_DEFINITIONS
BUILD_HDF5_HL_DLL
@@ -130,9 +116,7 @@ if (BUILD_SHARED_LIBS)
if (MSVC)
set (SHARED_LINK_FLAGS "/DLL /DEF:${HDF5_HL_F90_SRC_BINARY_DIR}/hdf5_hl_fortrandll.def")
endif (MSVC)
- endif (WIN32)
-endif (BUILD_SHARED_LIBS)
-if (WIN32)
+ endif (BUILD_SHARED_LIBS)
set_property (TARGET ${HDF5_HL_F90_LIB_TARGET}
APPEND PROPERTY COMPILE_DEFINITIONS
HDF5F90_WINDOWS
@@ -162,7 +146,9 @@ endif (WIN32)
set (mod_files
${MOD_BUILD_DIR}/h5ds.mod
${MOD_BUILD_DIR}/h5tb.mod
+ ${MOD_BUILD_DIR}/h5tb_const.mod
${MOD_BUILD_DIR}/h5lt.mod
+ ${MOD_BUILD_DIR}/h5lt_const.mod
${MOD_BUILD_DIR}/h5im.mod
)