From 0c5bd579763e48e5dbc1d070ae94a60d7e663a08 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Sat, 9 Apr 2022 16:24:21 +0200 Subject: [PATCH] Fix REUSE check on CI The CI installs files to _include and _build in the source directory, which breaks the REUSE check --- CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index d94d2a712..605e940b7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -140,5 +140,9 @@ file(GLOB_RECURSE ALL_CLANG_FORMAT_SOURCE_FILES src/*.cpp src/*.h) kde_clang_format(${ALL_CLANG_FORMAT_SOURCE_FILES}) kde_configure_git_pre_commit_hook(CHECKS CLANG_FORMAT) + file(GLOB_RECURSE ALL_SOURCE_FILES *.cpp *.h *.qml) +# CI installs dependency headers to _install and _build, which break the reuse check +# Fixes the test by excluding this directory +list(FILTER ALL_SOURCE_FILES EXCLUDE REGEX [[_(install|build)/.*]]) ecm_check_outbound_license(LICENSES GPL-3.0-only FILES ${ALL_SOURCE_FILES})