diff options
author | Allen Byrne <50328838+byrnHDF@users.noreply.github.com> | 2023-04-13 19:11:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-13 19:11:35 (GMT) |
commit | 1c03b7d687f4834f2c32b1bf069ab1f6d25ee326 (patch) | |
tree | 36f4bfd02e4d63d18697be23fb039401f76925f7 /java/examples/datatypes/CMakeLists.txt | |
parent | 18b8534174fcdd5b839025b5eb5ec1b4e21f370c (diff) | |
download | hdf5-1c03b7d687f4834f2c32b1bf069ab1f6d25ee326.zip hdf5-1c03b7d687f4834f2c32b1bf069ab1f6d25ee326.tar.gz hdf5-1c03b7d687f4834f2c32b1bf069ab1f6d25ee326.tar.bz2 |
Fix java depends and pdb lib install (#2720)
* Fix java depends and pdb lib install
* Correct end of for loop depends
* fix location of set last_test
Diffstat (limited to 'java/examples/datatypes/CMakeLists.txt')
-rw-r--r-- | java/examples/datatypes/CMakeLists.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/java/examples/datatypes/CMakeLists.txt b/java/examples/datatypes/CMakeLists.txt index 1690701..5860429 100644 --- a/java/examples/datatypes/CMakeLists.txt +++ b/java/examples/datatypes/CMakeLists.txt @@ -67,12 +67,16 @@ if (BUILD_TESTING AND HDF5_TEST_EXAMPLES AND HDF5_TEST_SERIAL) get_property (target_name TARGET ${HDF5_JAVA_JNI_LIB_TARGET} PROPERTY OUTPUT_NAME) set (CMD_ARGS "-Dhdf.hdf5lib.H5.loadLibraryName=${target_name}$<$<OR:$<CONFIG:Debug>,$<CONFIG:Developer>>:${CMAKE_DEBUG_POSTFIX}>;") + set (last_test "") foreach (example ${HDF_JAVA_EXAMPLES}) add_test ( NAME JAVA_datatypes-${example}-clear-objects COMMAND ${CMAKE_COMMAND} -E remove ${HDFJAVA_EXAMPLES_BINARY_DIR}/${example}.h5 ) + if (last_test) + set_tests_properties (JAVA_datatypes-${example}-clear-objects PROPERTIES DEPENDS ${last_test}) + endif () add_test ( NAME JAVA_datatypes-${example}-copy-objects @@ -107,5 +111,6 @@ if (BUILD_TESTING AND HDF5_TEST_EXAMPLES AND HDF5_TEST_SERIAL) set_tests_properties (JAVA_datatypes-${example}-clean-objects PROPERTIES DEPENDS JAVA_datatypes-${example} ) + set (last_test "JAVA_datatypes-${example}-clean-objects") endforeach () endif () |