aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRomain Forlot <romain.forlot@iot.bzh>2018-04-24 17:44:41 +0200
committerRomain Forlot <romain.forlot@iot.bzh>2018-04-24 17:44:41 +0200
commit6e1a3c37e94f42f5307fd1fa749823b2d160a56b (patch)
treeacf8771cedf06514b7e49e20eb721e238b5d5498
parent30e78a532aed26ff3b8d2ad035dd85cc0ea8193a (diff)
Fix filename pattern to match .cmake files
Change-Id: I1c659045f178f5e45d31b0203abcd91485b55838 Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
-rw-r--r--cmake/cmake.d/03-macros.cmake2
1 files changed, 1 insertions, 1 deletions
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()