summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-06-20 22:02:49 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-06-20 22:02:49 (GMT)
commit5fc5d947f084d1ef5d4c4a0bc2be55baa181f0fa (patch)
tree5c6aa4a7454471f022e952a3477a7774e2540226 /test
parent2e973f7e12301975f9d8dfdd5534682525554e77 (diff)
parentc24f11070aea56331110628d7645332534e4f227 (diff)
downloadhdf5-5fc5d947f084d1ef5d4c4a0bc2be55baa181f0fa.zip
hdf5-5fc5d947f084d1ef5d4c4a0bc2be55baa181f0fa.tar.gz
hdf5-5fc5d947f084d1ef5d4c4a0bc2be55baa181f0fa.tar.bz2
Merge pull request #1749 in HDFFV/hdf5 from ~BYRN/hdf5_merge_adb:develop to develop
* commit 'c24f11070aea56331110628d7645332534e4f227': Add H5_HLDLL prefix for windows link HDFFV-10805 cleanup examples and test code Add missing fortran mods HDFFV-10805 Fix test of library libinfo Cleanup possible CMake target conflicts Correct CMake issues
Diffstat (limited to 'test')
-rw-r--r--test/CMakeTests.cmake19
1 files changed, 13 insertions, 6 deletions
diff --git a/test/CMakeTests.cmake b/test/CMakeTests.cmake
index 1e7ddff..3d986d2 100644
--- a/test/CMakeTests.cmake
+++ b/test/CMakeTests.cmake
@@ -867,12 +867,19 @@ set_tests_properties (H5TEST-links_env PROPERTIES
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
)
-#-- Adding test for libinfo
-add_test (NAME H5TEST-testlibinfo
- COMMAND ${CMAKE_COMMAND} -D "TEST_PROGRAM=$<TARGET_FILE:${HDF5_LIB_TARGET}>" -P "${GREP_RUNNER}"
- WORKING_DIRECTORY
- ${HDF5_TEST_BINARY_DIR}/H5TEST
-)
+if (NOT BUILD_SHARED_LIBS)
+ #-- Adding test for libinfo
+ add_test (NAME H5TEST-testlibinfo
+ COMMAND ${CMAKE_COMMAND} -D "TEST_PROGRAM=$<TARGET_FILE:${HDF5_LIB_TARGET}>" -P "${GREP_RUNNER}"
+ WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
+ )
+else ()
+ #-- Adding test for libinfo
+ add_test (NAME H5TEST-testlibinfo
+ COMMAND ${CMAKE_COMMAND} -D "TEST_PROGRAM=$<TARGET_FILE:${HDF5_LIBSH_TARGET}>" -P "${GREP_RUNNER}"
+ WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}/H5TEST
+ )
+endif ()
##############################################################################
### F I L T E R P L U G I N T E S T S