summaryrefslogtreecommitdiffstats
path: root/java/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-07-22 21:23:38 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-07-22 21:23:38 (GMT)
commitfbc06ff9b8e12f542814d6e5dc08c19680a5429d (patch)
tree00bb7d88c53b840051d9249f9592bf7c176b67cb /java/test
parent64733980e5f595ab6e267405284a4461261644ea (diff)
downloadhdf5-fbc06ff9b8e12f542814d6e5dc08c19680a5429d.zip
hdf5-fbc06ff9b8e12f542814d6e5dc08c19680a5429d.tar.gz
hdf5-fbc06ff9b8e12f542814d6e5dc08c19680a5429d.tar.bz2
Use generator expr to get correct name
Diffstat (limited to 'java/test')
-rw-r--r--java/test/CMakeLists.txt6
1 files changed, 2 insertions, 4 deletions
diff --git a/java/test/CMakeLists.txt b/java/test/CMakeLists.txt
index d677b5f..3298a47 100644
--- a/java/test/CMakeLists.txt
+++ b/java/test/CMakeLists.txt
@@ -89,8 +89,7 @@ else ()
endif ()
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}>;")
+set (CMD_ARGS "-Dhdf.hdf5lib.H5.loadLibraryName=${target_name}$<$<CONFIG:Debug>:${CMAKE_DEBUG_POSTFIX}>;")
foreach (test_file ${HDF5_JAVA_TEST_SOURCES})
set (CMAKE_JAVA_CLASSPATH ".")
@@ -101,8 +100,7 @@ foreach (test_file ${HDF5_JAVA_TEST_SOURCES})
add_test (
NAME JUnit-${test_file}-clearall-objects
- COMMAND ${CMAKE_COMMAND}
- -E remove
+ COMMAND ${CMAKE_COMMAND} -E remove
JUnit-${test_file}.out
JUnit-${test_file}.out.err
)