summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-04-24 14:03:46 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-04-24 14:03:46 (GMT)
commit0e1633c26d3d28cc7612ae52277111a6aa4869da (patch)
treee4f26a00434dcbb2b7cd5ef2bb4f3e238c4aa5c4
parent0ee3d2ad9b38b54687fd8748dd296c0011bd962a (diff)
downloadhdf5-0e1633c26d3d28cc7612ae52277111a6aa4869da.zip
hdf5-0e1633c26d3d28cc7612ae52277111a6aa4869da.tar.gz
hdf5-0e1633c26d3d28cc7612ae52277111a6aa4869da.tar.bz2
Windows ahs one more directory level
-rw-r--r--test/CMakeTests.cmake4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CMakeTests.cmake b/test/CMakeTests.cmake
index 86c5cb3..6f15fc4 100644
--- a/test/CMakeTests.cmake
+++ b/test/CMakeTests.cmake
@@ -986,8 +986,10 @@ endif ()
##############################################################################
if (WIN32)
set (CMAKE_SEP "\;")
+ set (BIN_REL_PATH "../../")
else ()
set (CMAKE_SEP ":")
+ set (BIN_REL_PATH "../")
endif ()
add_test (NAME H5PLUGIN-plugin COMMAND $<TARGET_FILE:plugin>)
@@ -998,7 +1000,7 @@ set_tests_properties (H5PLUGIN-plugin PROPERTIES
add_test (NAME H5PLUGIN-pluginRelative COMMAND $<TARGET_FILE:plugin>)
set_tests_properties (H5PLUGIN-pluginRelative PROPERTIES
- ENVIRONMENT "HDF5_PLUGIN_PATH=@/../testdir1${CMAKE_SEP}@/../testdir2;srcdir=${HDF5_TEST_BINARY_DIR}"
+ ENVIRONMENT "HDF5_PLUGIN_PATH=@/${BIN_REL_PATH}testdir1${CMAKE_SEP}@/${BIN_REL_PATH}testdir2;srcdir=${HDF5_TEST_BINARY_DIR}"
WORKING_DIRECTORY ${HDF5_TEST_BINARY_DIR}
)