Skip to content
This repository was archived by the owner on Apr 17, 2023. It is now read-only.

Commit b4eb4fe

Browse files
committed
Updated some function docs to include 'RECURSE' optional argument.
1 parent ee58a0c commit b4eb4fe

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

cmake/Platform/Sources/SourceSeeker.cmake

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#=============================================================================#
22
# Finds source files matching the given pattern under the given path.
33
# Search could also be recursive (With sub-directories) if the optional 'RECURSE' option is passed.
4-
# _base_path - Top-Directory path to search source files in.
5-
# _return_var - Name of variable in parent-scope holding the return value.
6-
# Returns - List of sources in the given path
4+
# _base_path - Top-Directory path to search source files in.
5+
# [RECURSE] - Whether search should be done recursively or not.
6+
# _return_var - Name of variable in parent-scope holding the return value.
7+
# Returns - List of sources in the given path
78
#=============================================================================#
89
function(_find_sources _base_path _pattern _return_var)
910

@@ -29,9 +30,10 @@ endfunction()
2930
# Finds header files matching the pre-defined header-file pattern under the given path.
3031
# This functions searchs explicitly for header-files such as '*.h'.
3132
# Search could also be recursive (With sub-directories) if the optional 'RECURSE' option is passed.
32-
# _base_path - Top-Directory path to search source files in.
33-
# _return_var - Name of variable in parent-scope holding the return value.
34-
# Returns - List of header files in the given path
33+
# _base_path - Top-Directory path to search source files in.
34+
# [RECURSE] - Whether search should be done recursively or not.
35+
# _return_var - Name of variable in parent-scope holding the return value.
36+
# Returns - List of header files in the given path
3537
#=============================================================================#
3638
function(find_header_files _base_path _return_var)
3739

@@ -44,9 +46,10 @@ endfunction()
4446
# Finds source files matching the pre-defined source-file pattern under the given path.
4547
# This functions searchs explicitly for source-files such as '*.c'.
4648
# Search could also be recursive (With sub-directories) if the optional 'RECURSE' option is passed.
47-
# _base_path - Top-Directory path to search source files in.
48-
# _return_var - Name of variable in parent-scope holding the return value.
49-
# Returns - List of source files in the given path
49+
# _base_path - Top-Directory path to search source files in.
50+
# [RECURSE] - Whether search should be done recursively or not.
51+
# _return_var - Name of variable in parent-scope holding the return value.
52+
# Returns - List of source files in the given path
5053
#=============================================================================#
5154
function(find_source_files _base_path _return_var)
5255

@@ -59,9 +62,10 @@ endfunction()
5962
# Finds sketch files matching the pre-defined sketch-file pattern under the given path.
6063
# This functions searchs explicitly for sketch-files such as '*.ino'.
6164
# Search could also be recursive (With sub-directories) if the optional 'RECURSE' option is passed.
62-
# _base_path - Top-Directory path to search source files in.
63-
# _return_var - Name of variable in parent-scope holding the return value.
64-
# Returns - List of header files in the given path
65+
# _base_path - Top-Directory path to search source files in.
66+
# [RECURSE] - Whether search should be done recursively or not.
67+
# _return_var - Name of variable in parent-scope holding the return value.
68+
# Returns - List of header files in the given path
6569
#=============================================================================#
6670
function(find_sketch_files _base_path _return_var)
6771

0 commit comments

Comments
 (0)