diff options
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/utils.cmake | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmake/utils.cmake b/cmake/utils.cmake index c331ac51..d8450551 100644 --- a/cmake/utils.cmake +++ b/cmake/utils.cmake @@ -1,8 +1,8 @@ # Check if a dependency exist before trying to init git submodules function(check_init_submodule path) - file(GLOB DIR_CONTENT path) - list(LENGTH RESULT CONTENT_COUNT) + file(GLOB DIR_CONTENT "${path}/*") + list(LENGTH DIR_CONTENT CONTENT_COUNT) if (CONTENT_COUNT EQUAL 0) if (NOT EXISTS "${PROJECT_SOURCE_DIR}/.git") message(FATAL_ERROR "Failed to find third party dependency in '${path}'") |