From 450786c11028adb6464b2f4131a7485414b5dbd7 Mon Sep 17 00:00:00 2001 From: Giulio Eulisse <10544+ktf@users.noreply.github.com> Date: Fri, 6 Jun 2025 13:05:01 +0200 Subject: [PATCH] Do not look for macros in hidden folders --- cmake/O2GetListOfMacros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/O2GetListOfMacros.cmake b/cmake/O2GetListOfMacros.cmake index adadbe06af6fa..e7316d5076622 100644 --- a/cmake/O2GetListOfMacros.cmake +++ b/cmake/O2GetListOfMacros.cmake @@ -18,7 +18,7 @@ include_guard() function(o2_get_list_of_macros dir varname) file(GLOB_RECURSE listOfMacros RELATIVE ${CMAKE_SOURCE_DIR} ${dir}/*.C) # Case sensitive filtering of .C files (to avoid .c files on Mac) - list(FILTER listOfMacros INCLUDE REGEX "^.*\\.C$") + list(FILTER listOfMacros INCLUDE REGEX "^[^.].*\\.C$") # Remove macros that were copied to the build directory, to deal with # the (non-recommended-but-can-happen) case where the build directory # is a subdirectory of the source dir