diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-01-19 13:53:46 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-01-19 13:53:46 (GMT) |
commit | 6bae11bb5b9adfce55f173b1fe11fefd1081ec27 (patch) | |
tree | c3e9d6e4c7ec169dc8c61ac71557f5ef1ef8a335 /java/examples/groups/CMakeLists.txt | |
parent | 82463a6a7ae6779536e1e94d1fbcb89a55c0c729 (diff) | |
download | hdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.zip hdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.tar.gz hdf5-6bae11bb5b9adfce55f173b1fe11fefd1081ec27.tar.bz2 |
Improved CMake options for tests
Diffstat (limited to 'java/examples/groups/CMakeLists.txt')
-rw-r--r-- | java/examples/groups/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/java/examples/groups/CMakeLists.txt b/java/examples/groups/CMakeLists.txt index 9e43087..e319a7f 100644 --- a/java/examples/groups/CMakeLists.txt +++ b/java/examples/groups/CMakeLists.txt @@ -55,7 +55,7 @@ foreach (h5_file ${HDF_JAVA_TEST_FILES}) endforeach () add_custom_target(H5Ex_G_Visit_files ALL COMMENT "Copying files needed by H5Ex_G_Visit tests" DEPENDS ${H5Ex_G_Visit_files_list}) -if (BUILD_TESTING) +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}$<$<CONFIG:Debug>:${CMAKE_DEBUG_POSTFIX}>;") |