From afe53e71af3ce50c6d25d6b9790b421e74886f88 Mon Sep 17 00:00:00 2001 From: Matthew Parkinson Date: Sat, 13 Mar 2021 16:17:23 +0000 Subject: [PATCH] Restrict clangformat search. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index df91b70..675d661 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,7 +79,7 @@ macro(clangformat_targets) message(WARNING "Not generating clangformat target, no clang-format tool found") else () message(STATUS "Generating clangformat target using ${CLANG_FORMAT}") - file(GLOB_RECURSE ALL_SOURCE_FILES *.cc *.h *.hh) + file(GLOB_RECURSE ALL_SOURCE_FILES src/*.cc src/*.h src/*.hh) # clangformat does not yet understand concepts well; for the moment, don't # ask it to format them. See https://reviews.llvm.org/D79773 list(FILTER ALL_SOURCE_FILES EXCLUDE REGEX "src/[^/]*/[^/]*_concept\.h$")