diff options
author | Hannah von Reth <hannah.vonreth@owncloud.com> | 2019-10-18 12:41:36 +0300 |
---|---|---|
committer | Hannah von Reth <vonreth@kde.org> | 2019-10-18 17:06:27 +0300 |
commit | dcb9888ec0d9f8d841e5b10ba462389ae4d551d9 (patch) | |
tree | c7bcd0795c2ad2fc8e9095b04a5fc6cc00e3f4db /CMakeLists.txt | |
parent | e72b70f0516b7acb118972ae8eb0a71fea04149d (diff) |
[CMAKE] Deprecate old custom flag for unittests
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index f9c6afb53..e55ae8c28 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -4,9 +4,10 @@ set(CMAKE_CXX_STANDARD 14) project(client) if(UNIT_TESTING) - include(CTest) - enable_testing() + message(DEPRECATION "Setting UNIT_TESTING is deprecated please use BUILD_TESTING") + set(BUILD_TESTING TRUE) endif() +include(CTest) set(BIN_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") @@ -207,9 +208,7 @@ if(BUILD_SHELL_INTEGRATION) add_subdirectory(shell_integration) endif() -include(CTest) if(BUILD_TESTING) - enable_testing() add_subdirectory(test) endif() |