summaryrefslogtreecommitdiffstats
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-10-15 18:22:48 +0200
commit729c62f826eda296a90577ee461f8672cbc8265f (patch)
treed465e75c7058f14033bb30c9064a07f3757fc0c1
parent31cdee66f7f7d5044a33929259cd283457765c8c (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()