summaryrefslogtreecommitdiffstats
path: root/java/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-07-08 20:10:12 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-07-08 20:10:12 (GMT)
commit8583d608ef094237e5f484e0b4a7bb147fa9c6b5 (patch)
tree237bae981bf1b887abedf42d911573e2e60b5ff8 /java/test
parent8eadaf34081902f2080cdcac3a568ff5169b4ea7 (diff)
downloadhdf5-8583d608ef094237e5f484e0b4a7bb147fa9c6b5.zip
hdf5-8583d608ef094237e5f484e0b4a7bb147fa9c6b5.tar.gz
hdf5-8583d608ef094237e5f484e0b4a7bb147fa9c6b5.tar.bz2
Correct test use of library name
Diffstat (limited to 'java/test')
-rw-r--r--java/test/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/test/CMakeLists.txt b/java/test/CMakeLists.txt
index eb1f715..05bfd8d 100644
--- a/java/test/CMakeLists.txt
+++ b/java/test/CMakeLists.txt
@@ -88,7 +88,8 @@ else ()
set (CMAKE_JAVA_INCLUDE_FLAG_SEP ":")
endif ()
-set (CMD_ARGS "-Dhdf.hdf5lib.H5.loadLibraryName=$<TARGET_PROPERTY:${HDF5_JAVA_JNI_LIB_TARGET}>;")
+get_property (target_name TARGET ${HDF5_JAVA_JNI_LIB_TARGET} PROPERTY $<IF:$<CONFIG:Debug>,OUTPUT_NAME_DEBUG,OUTPUT_NAME_RELWITHDEBINFO>)
+set (CMD_ARGS "-Dhdf.hdf5lib.H5.loadLibraryName=${target_name};")
foreach (test_file ${HDF5_JAVA_TEST_SOURCES})