From 9adf88f46d5baa93eadf0547f89f7b450b091164 Mon Sep 17 00:00:00 2001 From: Jan Date: Wed, 11 Oct 2023 22:55:25 +0200 Subject: Correct submodule detection (#569) The contents of the submodules were incorrectly counted resulting in a git submodule update on every cmake invocation --- cmake/utils.cmake | 4 ++-- 1 file 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}'") -- cgit v1.2.3