mirror of
https://github.com/HDFGroup/hdf5.git
synced 2024-11-21 01:04:10 +08:00
Remove CMake-3.31.0 warnings (#5091)
This commit is contained in:
parent
619a375387
commit
cd7682cd18
@ -133,7 +133,6 @@ add_custom_command (TARGET H5match_types POST_BUILD
|
||||
BYPRODUCTS ${HDF5_F90_BINARY_DIR}/H5f90i_gen.h ${HDF5_F90_BINARY_DIR}/H5fortran_types.F90
|
||||
COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:H5match_types>
|
||||
WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR}
|
||||
DEPENDS H5match_types
|
||||
)
|
||||
|
||||
if (BUILD_STATIC_LIBS)
|
||||
@ -144,7 +143,6 @@ if (BUILD_STATIC_LIBS)
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_F90_BINARY_DIR}/H5fortran_types.F90 ${HDF5_F90_BINARY_DIR}/static/H5fortran_types.F90
|
||||
WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR}/static
|
||||
DEPENDS H5_buildiface H5match_types ${HDF5_F90_BINARY_DIR}/H5f90i_gen.h
|
||||
)
|
||||
set_source_files_properties (${HDF5_F90_BINARY_DIR}/static/H5f90i_gen.h PROPERTIES GENERATED TRUE)
|
||||
set_source_files_properties (${HDF5_F90_BINARY_DIR}/static/H5fortran_types.F90 PROPERTIES GENERATED TRUE)
|
||||
@ -157,7 +155,6 @@ if (BUILD_SHARED_LIBS)
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_F90_BINARY_DIR}/H5fortran_types.F90 ${HDF5_F90_BINARY_DIR}/shared/H5fortran_types.F90
|
||||
WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR}/shared
|
||||
DEPENDS H5_buildiface H5match_types ${HDF5_F90_BINARY_DIR}/H5f90i_gen.h
|
||||
)
|
||||
set_source_files_properties (${HDF5_F90_BINARY_DIR}/shared/H5f90i_gen.h PROPERTIES GENERATED TRUE)
|
||||
set_source_files_properties (${HDF5_F90_BINARY_DIR}/shared/H5fortran_types.F90 PROPERTIES GENERATED TRUE)
|
||||
@ -286,7 +283,6 @@ add_custom_command (TARGET H5_buildiface POST_BUILD
|
||||
BYPRODUCTS ${HDF5_F90_BINARY_DIR}/H5_gen.F90
|
||||
COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:H5_buildiface>
|
||||
WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR}
|
||||
DEPENDS H5_buildiface ${f90_F_GEN_SOURCES}
|
||||
COMMENT "Generating the H5_gen.F90 file"
|
||||
)
|
||||
if (BUILD_STATIC_LIBS)
|
||||
@ -295,7 +291,6 @@ if (BUILD_STATIC_LIBS)
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_F90_BINARY_DIR}/H5_gen.F90 ${HDF5_F90_BINARY_DIR}/static/H5_gen.F90
|
||||
WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR}/static
|
||||
DEPENDS H5_buildiface ${HDF5_F90_BINARY_DIR}/H5_gen.F90
|
||||
COMMENT "Generating the H5_gen.F90 file"
|
||||
)
|
||||
add_custom_target (H5gen ALL
|
||||
@ -310,7 +305,6 @@ if (BUILD_SHARED_LIBS)
|
||||
COMMAND ${CMAKE_COMMAND}
|
||||
ARGS -E copy_if_different ${HDF5_F90_BINARY_DIR}/H5_gen.F90 ${HDF5_F90_BINARY_DIR}/shared/H5_gen.F90
|
||||
WORKING_DIRECTORY ${HDF5_F90_BINARY_DIR}/shared
|
||||
DEPENDS ${HDF5_F90_BINARY_DIR}/H5_gen.F90
|
||||
COMMENT "Generating the H5_gen.F90 shared file"
|
||||
)
|
||||
add_custom_target (H5genSH ALL
|
||||
|
@ -107,7 +107,6 @@ else ()
|
||||
BYPRODUCTS ${HDF5_FORTRAN_TESTS_BINARY_DIR}/shared/tf_gen.F90
|
||||
COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:H5_test_buildiface>
|
||||
WORKING_DIRECTORY ${HDF5_FORTRAN_TESTS_BINARY_DIR}/shared
|
||||
DEPENDS H5_test_buildiface
|
||||
COMMENT "Generating the tf_gen.F90 shared file"
|
||||
)
|
||||
add_custom_target (H5testgenSH ALL
|
||||
|
@ -116,7 +116,6 @@ if (BUILD_STATIC_LIBS)
|
||||
BYPRODUCTS ${HDF5_HL_F90_BINARY_DIR}/static/H5LTff_gen.F90 ${HDF5_HL_F90_BINARY_DIR}/static/H5TBff_gen.F90
|
||||
COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:H5HL_buildiface>
|
||||
WORKING_DIRECTORY ${HDF5_HL_F90_BINARY_DIR}/static
|
||||
DEPENDS ${HDF5_HL_F90_F_BASE_SOURCES}
|
||||
COMMENT "Generating the H5LTff_gen.F90, H5TBff_gen.F90 files"
|
||||
)
|
||||
add_custom_target (H5HLgen ALL
|
||||
@ -133,7 +132,6 @@ if (BUILD_SHARED_LIBS)
|
||||
BYPRODUCTS ${HDF5_HL_F90_BINARY_DIR}/shared/H5LTff_gen.F90 ${HDF5_HL_F90_BINARY_DIR}/shared/H5TBff_gen.F90
|
||||
COMMAND ${CMAKE_CROSSCOMPILING_EMULATOR} $<TARGET_FILE:H5HL_buildiface>
|
||||
WORKING_DIRECTORY ${HDF5_HL_F90_BINARY_DIR}/shared
|
||||
DEPENDS ${HDF5_HL_F90_F_BASE_SOURCES}
|
||||
COMMENT "Generating the H5LTff_gen.F90, H5TBff_gen.F90 shared files"
|
||||
)
|
||||
add_custom_target (H5HLgenSH ALL
|
||||
|
Loading…
Reference in New Issue
Block a user