diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-07-18 18:03:07 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-07-18 18:03:07 (GMT) |
commit | 4d3f52ac97ea922cefda857c971fbd3608d8994c (patch) | |
tree | 8283ffb5447f8ed62532a911640b44ebda9641ad /java/examples/intro | |
parent | 5654ba57f131d14eaf76d09e8ca1299e03ee1358 (diff) | |
download | hdf5-4d3f52ac97ea922cefda857c971fbd3608d8994c.zip hdf5-4d3f52ac97ea922cefda857c971fbd3608d8994c.tar.gz hdf5-4d3f52ac97ea922cefda857c971fbd3608d8994c.tar.bz2 |
Correct java load library name access
Diffstat (limited to 'java/examples/intro')
-rw-r--r-- | java/examples/intro/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/examples/intro/CMakeLists.txt b/java/examples/intro/CMakeLists.txt index 86b6296..a4f0cdd 100644 --- a/java/examples/intro/CMakeLists.txt +++ b/java/examples/intro/CMakeLists.txt @@ -58,8 +58,9 @@ foreach (example ${HDF_JAVA_OBJECT_EXAMPLES}) endforeach () 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_intro-${resultfile} COMMAND "${CMAKE_COMMAND}" |