Skip to content

Commit

Permalink
allow build without internet by skipping the update step of externall…
Browse files Browse the repository at this point in the history
…y 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)
  • Loading branch information
fabianhirmann committed Dec 16, 2024
1 parent 4c2fb2c commit 8e80260
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fuse_core/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,16 @@ 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
GIT_REPOSITORY https://github.com/ARTI-Robots/covariance_geometry.git
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
)
Expand Down

0 comments on commit 8e80260

Please sign in to comment.