Code Review
/
staging
/
xdg-launcher.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
02653e1
)
Use optional pattern argument to search under subdirs
author
Romain Forlot
<romain.forlot@iot.bzh>
Thu, 4 May 2017 18:03:34 +0000
(20:03 +0200)
committer
Romain Forlot
<romain.forlot@iot.bzh>
Thu, 4 May 2017 18:03:34 +0000
(20:03 +0200)
Change-Id: Ic24dee22f0e8353cc7bc9fb6a4698d4d7d762412
Signed-off-by: Romain Forlot <romain.forlot@iot.bzh>
reference/etc/macros.cmake
patch
|
blob
|
history
diff --git
a/reference/etc/macros.cmake
b/reference/etc/macros.cmake
index
046be7a
..
a002d95
100644
(file)
--- a/
reference/etc/macros.cmake
+++ b/
reference/etc/macros.cmake
@@
-112,7
+112,12
@@
macro(project_package_build)
endmacro(project_package_build)
macro(project_subdirs_add)
- file(GLOB filelist "*")
+ if(${ARGV0})
+ file(GLOB filelist "${ARGV0}")
+ else()
+ file(GLOB filelist "*")
+ endif(${ARGV0})
+
foreach(filename ${filelist})
if(EXISTS "${filename}/CMakeLists.txt")
add_subdirectory(${filename})