Commit 56f1e0b9 authored by Brad King's avatar Brad King
Browse files

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

  - Test SubProject-Stage2 is conditionally created.
  - Set properties on it only if it exists.
parent 096c139c
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment