From ce5cc251867ca16da3e25fc229f318e89bd040a5 Mon Sep 17 00:00:00 2001 From: Simon De Backer Date: Fri, 11 Dec 2020 21:45:58 +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 --- CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 9ed3ef1a0..0fbc86bfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -184,7 +184,7 @@ message("GIT_COMMIT_SHA :" ${GIT_COMMIT_SHA}) Include(FetchContent) #ToDo De-Backer -#set(BUILD_KF5_YES "YES") +set(BUILD_KF5_YES "YES") if(DEFINED BUILD_KF5_YES) @@ -195,11 +195,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(