Skip to content
Snippets Groups Projects
Verified Commit 7cfd54ab authored by Tobias Frisch's avatar Tobias Frisch
Browse files

[#107] Fixed glob for empty submodule directory

parent 1eb4d3b8
No related branches found
No related tags found
1 merge request!99Resolve "Automatische Generierung von cmake-Files für Projekte"
Pipeline #27307 passed
......@@ -38,7 +38,7 @@ function(init_git_submodules)
endfunction()
function(use_git_submodule submodule_path submodule_status)
file(GLOB path_glob "${submodule_path}")
file(GLOB path_glob "${submodule_path}/*")
list(LENGTH path_glob glob_len)
if(glob_len GREATER 0)
set(${submodule_status} TRUE PARENT_SCOPE)
......@@ -59,7 +59,7 @@ function(use_git_submodule submodule_path submodule_status)
COMMENT "Updating Git Submodules"
)
file(GLOB path_glob "${submodule_path}")
file(GLOB path_glob "${submodule_path}/*")
list(LENGTH path_glob glob_len)
if(glob_len GREATER 0)
set(${submodule_status} TRUE PARENT_SCOPE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment