2018-11-15 01:19:28 +08:00
|
|
|
cmake_minimum_required (VERSION 3.10)
|
|
|
|
|
|
|
|
message(STATUS "Check for existence of ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c")
|
|
|
|
execute_process(COMMAND ls ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c RESULT_VARIABLE H5TI_result OUTPUT_QUIET ERROR_QUIET)
|
|
|
|
while(H5TI_result)
|
|
|
|
ctest_sleep(30)
|
|
|
|
message(STATUS "Checking again for existence of ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c")
|
|
|
|
execute_process(COMMAND ls ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c RESULT_VARIABLE H5TI_result OUTPUT_QUIET ERROR_QUIET)
|
|
|
|
endwhile(H5TI_result)
|
2018-11-21 01:03:58 +08:00
|
|
|
file (TOUCH "${HDF5_BINARY_DIR}/H5Tinit_created")
|
2018-11-15 01:19:28 +08:00
|
|
|
message(STATUS "Found ${HDF5_GENERATED_SOURCE_DIR}/H5Tinit.c")
|