Revert option from WITH_TESTS to TEST

This commit is contained in:
Fabio Bas 2015-10-09 15:47:34 +02:00
parent 7fe60279de
commit b63475829b
2 changed files with 3 additions and 3 deletions

View file

@ -234,8 +234,8 @@ if(WITH_ORACLE)
endif()
# Compile tests (default off)
option(WITH_TESTS "build tests" OFF)
if(WITH_TESTS)
option(TEST "build tests" OFF)
if(TEST)
include(CTest)
add_subdirectory(tests)
endif()

View file

@ -13,7 +13,7 @@ if [[ $TRAVIS_OS_NAME == "linux" && $QT4 == 0 ]]; then
fi
if [[ $BUILDTYPE == "Debug" ]]; then
cmake .. -DWITH_SERVER=1 -DWITH_TESTS=1 -DCMAKE_BUILD_TYPE=$BUILDTYPE -DWITH_QT4=$QT4 $prefix
cmake .. -DWITH_SERVER=1 -DTEST=1 -DCMAKE_BUILD_TYPE=$BUILDTYPE -DWITH_QT4=$QT4 $prefix
make -j2
make test
else