COMP: Don't set properties on a non-existing test

- Test SubProject-Stage2 is conditionally created.
  - Set properties on it only if it exists.
This commit is contained in:
Brad King 2008-07-03 14:34:28 -04:00
parent 096c139c80
commit 56f1e0b9c2
1 changed files with 1 additions and 1 deletions

View File

@ -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)