From: Romain Forlot Date: Tue, 24 Apr 2018 15:44:41 +0000 (+0200) Subject: Fix filename pattern to match .cmake files X-Git-Tag: 5.99.1~15 X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=commitdiff_plain;h=6e1a3c37e94f42f5307fd1fa749823b2d160a56b;p=apps%2Fapp-templates.git Fix filename pattern to match .cmake files Change-Id: I1c659045f178f5e45d31b0203abcd91485b55838 Signed-off-by: Romain Forlot --- 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()