Fix logic which decides when to execute automoc test

Alex
This commit is contained in:
Alex Neundorf 2011-08-16 23:48:01 +02:00
parent 77a5c6e0d8
commit 2963d0b078
1 changed files with 15 additions and 14 deletions

View File

@ -842,6 +842,8 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
IF(NOT QT4_FOUND) IF(NOT QT4_FOUND)
FIND_PACKAGE(Qt4) FIND_PACKAGE(Qt4)
ENDIF(NOT QT4_FOUND)
IF(QT4_FOUND) IF(QT4_FOUND)
ADD_TEST(QtAutomoc ${CMAKE_CTEST_COMMAND} ADD_TEST(QtAutomoc ${CMAKE_CTEST_COMMAND}
--build-and-test --build-and-test
@ -856,7 +858,6 @@ ${CMake_BINARY_DIR}/bin/cmake -DVERSION=master -P ${CMake_SOURCE_DIR}/Utilities/
) )
LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/QtAutomoc") LIST(APPEND TEST_BUILD_DIRS "${CMake_BINARY_DIR}/Tests/QtAutomoc")
ENDIF() ENDIF()
ENDIF(NOT QT4_FOUND)
ADD_TEST(ExternalProject ${CMAKE_CTEST_COMMAND} ADD_TEST(ExternalProject ${CMAKE_CTEST_COMMAND}
--build-and-test --build-and-test