summaryrefslogtreecommitdiffstats
path: root/java/examples/datasets/CMakeLists.txt
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-07-08 18:59:35 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-07-08 18:59:35 (GMT)
commit8eadaf34081902f2080cdcac3a568ff5169b4ea7 (patch)
treeac20541c198b29a98bd06f8c1f7ddcba0f9ee7bd /java/examples/datasets/CMakeLists.txt
parent1878e68558b83bb2d822c298aa7b8373a2bde273 (diff)
downloadhdf5-8eadaf34081902f2080cdcac3a568ff5169b4ea7.zip
hdf5-8eadaf34081902f2080cdcac3a568ff5169b4ea7.tar.gz
hdf5-8eadaf34081902f2080cdcac3a568ff5169b4ea7.tar.bz2
Change how name is retrieved
Diffstat (limited to 'java/examples/datasets/CMakeLists.txt')
-rw-r--r--java/examples/datasets/CMakeLists.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/java/examples/datasets/CMakeLists.txt b/java/examples/datasets/CMakeLists.txt
index 1f46bbd..9e5c45c 100644
--- a/java/examples/datasets/CMakeLists.txt
+++ b/java/examples/datasets/CMakeLists.txt
@@ -72,7 +72,8 @@ foreach (HDFJAVA_JAR ${CMAKE_JAVA_INCLUDE_PATH})
endforeach ()
macro (ADD_H5_TEST resultfile resultcode)
- 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};")
add_test (
NAME JAVA_datasets-${resultfile}
COMMAND "${CMAKE_COMMAND}"