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:
parent
096c139c80
commit
56f1e0b9c2
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue