summaryrefslogtreecommitdiffstats
path: root/examples/CMakeTests.cmake
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-02-15 21:48:24 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-02-15 21:48:24 (GMT)
commit122b63a5a27227f2349634f4e8f8e43d739255f5 (patch)
tree195fb47964dd6c95844ad1ec4da210bdaa0b9c25 /examples/CMakeTests.cmake
parent6ea0dafa41415c0888889214c82f75a02ec4a545 (diff)
downloadhdf5-122b63a5a27227f2349634f4e8f8e43d739255f5.zip
hdf5-122b63a5a27227f2349634f4e8f8e43d739255f5.tar.gz
hdf5-122b63a5a27227f2349634f4e8f8e43d739255f5.tar.bz2
HDFFV-10703 Update CMake commands to latest standard
Diffstat (limited to 'examples/CMakeTests.cmake')
-rw-r--r--examples/CMakeTests.cmake12
1 files changed, 6 insertions, 6 deletions
diff --git a/examples/CMakeTests.cmake b/examples/CMakeTests.cmake
index cb47c78..1058566 100644
--- a/examples/CMakeTests.cmake
+++ b/examples/CMakeTests.cmake
@@ -71,7 +71,7 @@
vds-simpleIO.h5
vds-eiger.h5
)
- if (NOT "${last_test}" STREQUAL "")
+ if (last_test)
set_tests_properties (EXAMPLES-clear-objects PROPERTIES DEPENDS ${last_test})
endif ()
set (last_test "EXAMPLES-clear-objects")
@@ -91,7 +91,7 @@
-P "${HDF_RESOURCES_EXT_DIR}/runTest.cmake"
)
endif ()
- if (NOT "${last_test}" STREQUAL "")
+ if (last_test)
set_tests_properties (EXAMPLES-${example} PROPERTIES DEPENDS ${last_test})
endif ()
set (last_test "EXAMPLES-${example}")
@@ -150,7 +150,7 @@
WORKING_DIRECTORY
${PROJECT_BINARY_DIR}/H5EX-shared
)
- if (NOT "${last_test}" STREQUAL "")
+ if (last_test)
set_tests_properties (EXAMPLES-shared-clear-objects PROPERTIES DEPENDS ${last_test})
endif ()
set (last_test "EXAMPLES-shared-clear-objects")
@@ -171,7 +171,7 @@
)
endif ()
set_tests_properties (EXAMPLES-shared-${example} PROPERTIES WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/H5EX-shared)
- if (NOT "${last_test}" STREQUAL "")
+ if (last_test)
set_tests_properties (EXAMPLES-shared-${example} PROPERTIES DEPENDS ${last_test})
endif ()
set (last_test "EXAMPLES-shared-${example}")
@@ -194,7 +194,7 @@
-P "${HDF_RESOURCES_EXT_DIR}/grepTest.cmake"
)
endif ()
- if (NOT "${last_test}" STREQUAL "")
+ if (last_test)
set_tests_properties (MPI_TEST_EXAMPLES-ph5example PROPERTIES DEPENDS ${last_test})
endif ()
set (last_test "MPI_TEST_EXAMPLES-ph5example")
@@ -214,7 +214,7 @@
)
endif ()
set_tests_properties (MPI_TEST_EXAMPLES-shared-ph5example PROPERTIES WORKING_DIRECTORY ${PROJECT_BINARY_DIR}/H5EX-shared)
- if (NOT "${last_test}" STREQUAL "")
+ if (last_test)
set_tests_properties (MPI_TEST_EXAMPLES-shared-ph5example PROPERTIES DEPENDS ${last_test})
endif ()
set (last_test "MPI_TEST_EXAMPLES-shared-ph5example")