summaryrefslogtreecommitdiffstats
path: root/java/examples/groups
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-07-18 18:03:07 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-07-18 18:03:07 (GMT)
commit4d3f52ac97ea922cefda857c971fbd3608d8994c (patch)
tree8283ffb5447f8ed62532a911640b44ebda9641ad /java/examples/groups
parent5654ba57f131d14eaf76d09e8ca1299e03ee1358 (diff)
downloadhdf5-4d3f52ac97ea922cefda857c971fbd3608d8994c.zip
hdf5-4d3f52ac97ea922cefda857c971fbd3608d8994c.tar.gz
hdf5-4d3f52ac97ea922cefda857c971fbd3608d8994c.tar.bz2
Correct java load library name access
Diffstat (limited to 'java/examples/groups')
-rw-r--r--java/examples/groups/CMakeLists.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/java/examples/groups/CMakeLists.txt b/java/examples/groups/CMakeLists.txt
index 8b16ffd..f0693ba 100644
--- a/java/examples/groups/CMakeLists.txt
+++ b/java/examples/groups/CMakeLists.txt
@@ -56,8 +56,9 @@ endforeach ()
add_custom_target(H5Ex_G_Visit_files ALL COMMENT "Copying files needed by H5Ex_G_Visit tests" DEPENDS ${H5Ex_G_Visit_files_list})
macro (ADD_H5_TEST resultfile resultcode)
- 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};")
+ get_property (target_name TARGET ${HDF5_JAVA_JNI_LIB_TARGET} PROPERTY OUTPUT_NAME)
+ get_property (target_name_debug TARGET ${HDF5_JAVA_JNI_LIB_TARGET} PROPERTY OUTPUT_NAME_DEBUG)
+ set (CMD_ARGS "-Dhdf.hdf5lib.H5.loadLibraryName=$<IF:$<CONFIG:Debug>,${target_name_debug},${target_name}>;")
add_test (
NAME JAVA_groups-${resultfile}
COMMAND "${CMAKE_COMMAND}"