diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2018-12-13 22:04:40 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2018-12-13 22:04:40 (GMT) |
commit | dd6c06f9a7713ec77a0d9bf64852c6d58584ad27 (patch) | |
tree | a92785073d3585a7a6a97f6cbfd5782e04a9a66a /src | |
parent | d88040edb37961fd4e68178fbc93578bd680b449 (diff) | |
parent | f9f6e9fe24d8b0996a79af57d80e21a950f5009f (diff) | |
download | hdf5-dd6c06f9a7713ec77a0d9bf64852c6d58584ad27.zip hdf5-dd6c06f9a7713ec77a0d9bf64852c6d58584ad27.tar.gz hdf5-dd6c06f9a7713ec77a0d9bf64852c6d58584ad27.tar.bz2 |
Merge pull request #1375 in HDFFV/hdf5 from ~BYRN/hdf5_adb:develop to develop
* commit 'f9f6e9fe24d8b0996a79af57d80e21a950f5009f':
Still need the stamp1 files if PREGEN
Diffstat (limited to 'src')
-rw-r--r-- | src/CMakeLists.txt | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 23b405a..778505f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1002,6 +1002,26 @@ if (NOT EXISTS ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c) endif () endif () set_source_files_properties (${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c PROPERTIES GENERATED TRUE) +else () + add_custom_command ( + OUTPUT ${HDF5_GENERATED_SOURCE_DIR}/gen_SRCS.stamp1 + COMMAND ${CMAKE_COMMAND} + ARGS -E touch ${HDF5_GENERATED_SOURCE_DIR}/gen_SRCS.stamp1 + DEPENDS ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c + WORKING_DIRECTORY ${HDF5_GENERATED_SOURCE_DIR} + ) + if (BUILD_SHARED_LIBS) + add_custom_command ( + OUTPUT ${HDF5_GENERATED_SOURCE_DIR}/shared/shared_gen_SRCS.stamp1 + COMMAND ${CMAKE_COMMAND} + ARGS -E copy_if_different "${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c" "${HDF5_GENERATED_SOURCE_DIR}/shared/H5Tinit.c" + COMMAND ${CMAKE_COMMAND} + ARGS -E touch ${HDF5_GENERATED_SOURCE_DIR}/shared/shared_gen_SRCS.stamp1 + DEPENDS ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c + WORKING_DIRECTORY ${HDF5_GENERATED_SOURCE_DIR} + ) + set_source_files_properties (${HDF5_GENERATED_SOURCE_DIR}/shared/H5Tinit.c PROPERTIES GENERATED TRUE) + endif () endif () add_executable (H5make_libsettings ${HDF5_SRC_DIR}/H5make_libsettings.c) |