From 6e1a3c37e94f42f5307fd1fa749823b2d160a56b Mon Sep 17 00:00:00 2001 From: Romain Forlot Date: Tue, 24 Apr 2018 17:44:41 +0200 Subject: Fix filename pattern to match .cmake files Change-Id: I1c659045f178f5e45d31b0203abcd91485b55838 Signed-off-by: Romain Forlot --- cmake/cmake.d/03-macros.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cmake.d/03-macros.cmake b/cmake/cmake.d/03-macros.cmake index c189bd6..9df9a10 100644 --- a/cmake/cmake.d/03-macros.cmake +++ b/cmake/cmake.d/03-macros.cmake @@ -520,7 +520,7 @@ macro(project_subdirs_add) foreach(filename ${filelist}) if(EXISTS "${filename}/CMakeLists.txt") add_subdirectory(${filename}) - elseif(${filename} MATCHES "^.*cmake$") + elseif(${filename} MATCHES "^.*\\.cmake$") include(${filename}) endif(EXISTS "${filename}/CMakeLists.txt") endforeach() -- cgit 1.2.3-korg