From 8e80260b3e68b39fa5c18a850d5479aa15445fae Mon Sep 17 00:00:00 2001 From: Fabian Hirmann Date: Mon, 16 Dec 2024 11:53:23 +0100 Subject: [PATCH] allow build without internet by skipping the update step of externally added project covariance_geometry_cpp by default (optionally it can be enable with cmake arguments; this does not prevent downloading the library in case it is not present at all) --- fuse_core/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/fuse_core/CMakeLists.txt b/fuse_core/CMakeLists.txt index e24f9d9ff..5c363ef4f 100644 --- a/fuse_core/CMakeLists.txt +++ b/fuse_core/CMakeLists.txt @@ -131,6 +131,8 @@ if(CATKIN_ENABLE_TESTING) include(ExternalProject) find_package(Git REQUIRED) + set(FUSE_CORE_UPDATE_DISCONNECTED ON CACHE BOOL "Set to OFF to force check for updates of covariance_geometry_cpp") + externalproject_add( covariance_geometry_cpp PREFIX ${CMAKE_CURRENT_BINARY_DIR}/covariance_geometry_cpp @@ -138,6 +140,7 @@ if(CATKIN_ENABLE_TESTING) GIT_TAG master TIMEOUT 10 UPDATE_COMMAND ${GIT_EXECUTABLE} pull + UPDATE_DISCONNECTED ${FUSE_CORE_UPDATE_DISCONNECTED} CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${CMAKE_CURRENT_BINARY_DIR}/covariance_geometry_cpp/src LOG_DOWNLOAD ON )