From 0ad1b681de2fe40f8359aea7db8ce024082a92f0 Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sat, 2 Oct 2021 17:57:35 -0400 Subject: [PATCH] CMakeLists: Use presence of src, not .git dir to determine libshared presence This way the mechanism to determine the presence of libshared works for tarball builds as well. --- CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index f39fa156b..f82992d5b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -28,13 +28,13 @@ else (ENABLE_SYNC) endif (ENABLE_SYNC) message ("-- Looking for libshared") -if (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/.git) +if (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/src) message ("-- Found libshared") -else (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/.git) +else (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/src) message ("-- Cloning libshared") execute_process (COMMAND git submodule update --init WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) -endif (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/.git) +endif (EXISTS ${CMAKE_SOURCE_DIR}/src/libshared/src) message ("-- Looking for SHA1 references") if (EXISTS ${CMAKE_SOURCE_DIR}/.git/index)