diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2016-09-20 20:27:26 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2016-09-20 20:27:26 (GMT) |
commit | 55fa38f3c9f63953caa25f769fda57dd1ee891b1 (patch) | |
tree | 6f8545bdacfe68ef4f364299fd437c8ed8109ecb /fortran | |
parent | 609f7e31f2d2861bf958e0e61b1336f2130b0d94 (diff) | |
download | hdf5-55fa38f3c9f63953caa25f769fda57dd1ee891b1.zip hdf5-55fa38f3c9f63953caa25f769fda57dd1ee891b1.tar.gz hdf5-55fa38f3c9f63953caa25f769fda57dd1ee891b1.tar.bz2 |
Update generated files commands and properties
Diffstat (limited to 'fortran')
-rw-r--r-- | fortran/src/CMakeLists.txt | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/fortran/src/CMakeLists.txt b/fortran/src/CMakeLists.txt index 4a0928e..e346a54 100644 --- a/fortran/src/CMakeLists.txt +++ b/fortran/src/CMakeLists.txt @@ -92,6 +92,7 @@ add_custom_command ( WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR} DEPENDS H5match_types ) +set_source_files_properties (${HDF5_F90_BINARY_DIR}/H5fortran_types.F90 PROPERTIES GENERATED TRUE) #----------------------------------------------------------------------------- # f90CStub lib @@ -114,7 +115,6 @@ set (f90CStub_C_SOURCES ${HDF5_F90_SRC_SOURCE_DIR}/H5Tf.c ${HDF5_F90_SRC_SOURCE_DIR}/H5Zf.c ) - set_source_files_properties (${f90CStub_C_SOURCES} PROPERTIES LANGUAGE C) set (f90CStub_C_HDRS @@ -163,17 +163,14 @@ add_custom_command ( OUTPUT ${HDF5_F90_SRC_BINARY_DIR}/H5_gen.F90 COMMAND ${CMD} DEPENDS ${f90_F_GEN_SOURCES} + COMMENT "Generating H5_gen.F90" ) add_custom_target (H5gen ALL -#v3.2 BYPRODUCT ${HDF5_F90_SRC_BINARY_DIR}/H5_gen.F90 - #WORKING_DIRECTORY ${HDF5_F90_SRC_BINARY_DIR} DEPENDS ${HDF5_F90_SRC_BINARY_DIR}/H5_gen.F90 ) +set_source_files_properties (${HDF5_F90_SRC_BINARY_DIR}/H5_gen.F90 PROPERTIES GENERATED TRUE) set (f90_F_BASE_SOURCES - # generated files - ${HDF5_F90_BINARY_DIR}/H5fortran_types.F90 - # normal distribution ${HDF5_F90_SRC_SOURCE_DIR}/H5f90global.F90 ${HDF5_F90_SRC_SOURCE_DIR}/H5fortkit.F90 @@ -192,9 +189,11 @@ set (f90_F_BASE_SOURCES ${HDF5_F90_SRC_SOURCE_DIR}/H5Tff.F90 ${HDF5_F90_SRC_SOURCE_DIR}/H5Zff.F90 ) -set_source_files_properties (${HDF5_F90_BINARY_DIR}/H5_gen.F90 PROPERTIES GENERATED TRUE) set (f90_F_SOURCES + # generated file + ${HDF5_F90_BINARY_DIR}/H5fortran_types.F90 + ${f90_F_BASE_SOURCES} # generated file |