aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan <sentrycraft123@gmail.com>2023-10-11 22:55:25 +0200
committerGitHub <noreply@github.com>2023-10-11 22:55:25 +0200
commit9adf88f46d5baa93eadf0547f89f7b450b091164 (patch)
tree78ec3ff8a276af4199edaa7bf303ce0c99198738
parent16f85420b38af8f75e6bed54cf2c79e61d3e45a2 (diff)
downloadNorthstarLauncher-9adf88f46d5baa93eadf0547f89f7b450b091164.tar.gz
NorthstarLauncher-9adf88f46d5baa93eadf0547f89f7b450b091164.zip
Correct submodule detection (#569)
The contents of the submodules were incorrectly counted resulting in a git submodule update on every cmake invocation
-rw-r--r--cmake/utils.cmake4
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}'")