From d2fb0d8ad19e0e300310db88ba0ee7a97a6a6dee Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Fri, 11 Dec 2020 23:57:17 +0100 Subject: [PATCH] Fix stop the run autotests of kcoreaddons see https://invent.kde.org/frameworks/kcoreaddons/-/blob/master/CMakeLists.txt#L98 issue: CMake Error at /usr/share/ECM/modules/ECMAddTests.cmake:89 (add_executable): Cannot find source file: see https://qelectrotech.org/forum/viewtopic.php?pid=13929#p13929 --- tests/catch/CMakeLists.txt | 2 ++ tests/googlemock/CMakeLists.txt | 2 ++ tests/googletest/CMakeLists.txt | 2 ++ tests/qttest/CMakeLists.txt | 2 ++ 4 files changed, 8 insertions(+) diff --git a/tests/catch/CMakeLists.txt b/tests/catch/CMakeLists.txt index d04ba6750..98ada7f21 100644 --- a/tests/catch/CMakeLists.txt +++ b/tests/catch/CMakeLists.txt @@ -84,11 +84,13 @@ if(DEFINED BUILD_KF5_YES) endif() #---ToDo why you don't work :/ + set(BUILD_TESTING "0") FetchContent_Declare( kcoreaddons GIT_REPOSITORY https://invent.kde.org/frameworks/kcoreaddons.git GIT_TAG ${KF5_GIT_TAG}) FetchContent_MakeAvailable(kcoreaddons) + unset(BUILD_TESTING) #___ToDo FetchContent_Declare( diff --git a/tests/googlemock/CMakeLists.txt b/tests/googlemock/CMakeLists.txt index 50a525468..426b966bb 100644 --- a/tests/googlemock/CMakeLists.txt +++ b/tests/googlemock/CMakeLists.txt @@ -84,11 +84,13 @@ if(DEFINED BUILD_KF5_YES) endif() #---ToDo why you don't work :/ + set(BUILD_TESTING "0") FetchContent_Declare( kcoreaddons GIT_REPOSITORY https://invent.kde.org/frameworks/kcoreaddons.git GIT_TAG ${KF5_GIT_TAG}) FetchContent_MakeAvailable(kcoreaddons) + unset(BUILD_TESTING) #___ToDo FetchContent_Declare( diff --git a/tests/googletest/CMakeLists.txt b/tests/googletest/CMakeLists.txt index aab886af3..7da2c0c02 100644 --- a/tests/googletest/CMakeLists.txt +++ b/tests/googletest/CMakeLists.txt @@ -84,11 +84,13 @@ if(DEFINED BUILD_KF5_YES) endif() #---ToDo why you don't work :/ + set(BUILD_TESTING "0") FetchContent_Declare( kcoreaddons GIT_REPOSITORY https://invent.kde.org/frameworks/kcoreaddons.git GIT_TAG ${KF5_GIT_TAG}) FetchContent_MakeAvailable(kcoreaddons) + unset(BUILD_TESTING) #___ToDo FetchContent_Declare( diff --git a/tests/qttest/CMakeLists.txt b/tests/qttest/CMakeLists.txt index 61dba73df..715e822f3 100644 --- a/tests/qttest/CMakeLists.txt +++ b/tests/qttest/CMakeLists.txt @@ -79,11 +79,13 @@ if(DEFINED BUILD_KF5_YES) endif() #---ToDo why you don't work :/ + set(BUILD_TESTING "0") FetchContent_Declare( kcoreaddons GIT_REPOSITORY https://invent.kde.org/frameworks/kcoreaddons.git GIT_TAG ${KF5_GIT_TAG}) FetchContent_MakeAvailable(kcoreaddons) + unset(BUILD_TESTING) #___ToDo FetchContent_Declare(