diff options
author | Brad King <brad.king@kitware.com> | 2008-07-03 18:34:28 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2008-07-03 18:34:28 (GMT) |
commit | 56f1e0b9c24b5bb807446adcd155aa54fc9e2cef (patch) | |
tree | 26a593a0b195eb6430d3a0d8dd4a127acb8eb4fb /Tests/CMakeLists.txt | |
parent | 096c139c80c5c72de3c96a5a1a925c26763b72f2 (diff) | |
download | CMake-56f1e0b9c24b5bb807446adcd155aa54fc9e2cef.zip CMake-56f1e0b9c24b5bb807446adcd155aa54fc9e2cef.tar.gz CMake-56f1e0b9c24b5bb807446adcd155aa54fc9e2cef.tar.bz2 |
COMP: Don't set properties on a non-existing test
- Test SubProject-Stage2 is conditionally created.
- Set properties on it only if it exists.
Diffstat (limited to 'Tests/CMakeLists.txt')
-rw-r--r-- | Tests/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tests/CMakeLists.txt b/Tests/CMakeLists.txt index 88e9aca..c233254 100644 --- a/Tests/CMakeLists.txt +++ b/Tests/CMakeLists.txt @@ -123,6 +123,7 @@ IF(BUILD_TESTING) --build-target foo --test-command foo ) + SET_TESTS_PROPERTIES ( SubProject-Stage2 PROPERTIES DEPENDS SubProject) ENDIF(NOT MSVC60 AND NOT XCODE AND NOT MSVC70) IF (CMAKE_STRICT) @@ -586,7 +587,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=CVS -P ${CMake_SOURCE_DIR}/Utilities/Rel SET_TESTS_PROPERTIES ( testdriver2 PROPERTIES DEPENDS testdriver1) SET_TESTS_PROPERTIES ( testdriver3 PROPERTIES DEPENDS testdriver2) SET_TESTS_PROPERTIES ( linkorder2 PROPERTIES DEPENDS linkorder1) - SET_TESTS_PROPERTIES ( SubProject-Stage2 PROPERTIES DEPENDS SubProject) SET_TESTS_PROPERTIES ( SimpleInstall-Stage2 PROPERTIES DEPENDS SimpleInstall) ENDIF(COMMAND SET_TESTS_PROPERTIES AND COMMAND GET_TEST_PROPERTY) |