summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2015-07-21 20:34:29 (GMT)
committerScot Breitenfeld <brtnfld@hdfgroup.org>2015-07-21 20:34:29 (GMT)
commit479bd3c800160c024742258a82e24c16fccfb161 (patch)
tree892de2df6543400a7613b4f1fc62f01203c2d30e
parente796ff45c7a858fdd74a8476e41948754332ecd1 (diff)
downloadhdf5-479bd3c800160c024742258a82e24c16fccfb161.zip
hdf5-479bd3c800160c024742258a82e24c16fccfb161.tar.gz
hdf5-479bd3c800160c024742258a82e24c16fccfb161.tar.bz2
[svn-r27422] changed add_custom_command to add_custom_target
-rw-r--r--hl/fortran/src/CMakeLists.txt34
1 files changed, 24 insertions, 10 deletions
diff --git a/hl/fortran/src/CMakeLists.txt b/hl/fortran/src/CMakeLists.txt
index 0cccac5..be7fd6c 100644
--- a/hl/fortran/src/CMakeLists.txt
+++ b/hl/fortran/src/CMakeLists.txt
@@ -36,14 +36,14 @@ 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
-)
+#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
@@ -98,12 +98,26 @@ set (HDF5_HL_F90_F_SRCS
set_source_files_properties (${HDF5_HL_F90_F_SRCS} PROPERTIES LANGUAGE Fortran)
-set_source_files_properties(
+#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
- PROPERTIES OBJECT_DEPENDS "${HDF5_HL_F90_F_BASE_SRCS}"
+ PROPERTIES GENERATED TRUE
)
+set (CMD $<TARGET_FILE:H5HL_buildiface>)
+add_custom_target (H5HLgen ALL
+ COMMAND ${CMD}
+#v3.2 BYPRODUCT ${HDF5_HL_F90_SRC_BINARY_DIR}/H5LTff_gen.F90
+#v3.2 ${HDF5_HL_F90_SRC_BINARY_DIR}/H5TBff_gen.F90
+ WORKING_DIRECTORY ${HDF5_HL_F90_SRC_BINARY_DIR}
+ DEPENDS ${HDF5_HL_F90_F_BASE_SRCS}
+)
add_library (${HDF5_HL_F90_LIB_TARGET} ${LIB_TYPE} ${HDF5_HL_F90_F_SRCS})
set (SHARED_LINK_FLAGS " ")