From 2795d13b408b8da0318eeff8ca4c82cf5f8cd14a Mon Sep 17 00:00:00 2001 From: Kevin Kellner Date: Wed, 8 Jan 2025 12:18:37 +0100 Subject: [PATCH] Fix for dependence on git even if the submodules were already checked out. --- CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index b752724..030f812 100755 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -473,7 +473,7 @@ if(NOT YOCTO_BUILD) # find_package(secutils ${CPACK_PACKAGE_VERSION}) if(NOT secutils_FOUND) - if(NOT EXISTS libsecutils/CMakeLists.txt) + if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/libsecutils/CMakeLists.txt") if(GIT_FOUND) message(STATUS "fetching git submodule libsecutils") execute_process(COMMAND @@ -494,7 +494,7 @@ if(NOT YOCTO_BUILD) # find_package(cmp ${CPACK_PACKAGE_VERSION}) if(DEFINED USE_LIBCMP AND NOT libcmp_FOUND) - if(NOT EXISTS cmpossl/CMakeLists.txt) + if(NOT EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/cmpossl/CMakeLists.txt") if(GIT_FOUND) message(STATUS "fetching git submodule cmpossl") execute_process(COMMAND