diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-07-18 16:37:34 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-07-18 16:37:34 (GMT) |
commit | 5b97d67d432d110e1c9ff5821e4ceec9e8ab4bf0 (patch) | |
tree | c8493aa3cd647825728cf38dfb89b2611dcf55d6 /java | |
parent | bdfb553c4c5783f757524f436ae8043e061dd765 (diff) | |
download | hdf5-5b97d67d432d110e1c9ff5821e4ceec9e8ab4bf0.zip hdf5-5b97d67d432d110e1c9ff5821e4ceec9e8ab4bf0.tar.gz hdf5-5b97d67d432d110e1c9ff5821e4ceec9e8ab4bf0.tar.bz2 |
CMake generator expr cannot be used in get_property cmd
Diffstat (limited to 'java')
-rw-r--r-- | java/test/CMakeLists.txt | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/java/test/CMakeLists.txt b/java/test/CMakeLists.txt index a210ca9..7910ea2 100644 --- a/java/test/CMakeLists.txt +++ b/java/test/CMakeLists.txt @@ -88,8 +88,9 @@ else () set (CMAKE_JAVA_INCLUDE_FLAG_SEP ":") endif () -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}>;") foreach (test_file ${HDF5_JAVA_TEST_SOURCES}) |