Skip to content

Commit

Permalink
do not force gtsam_points_cuda to avoid cmake errors in old envs (#99)
Browse files Browse the repository at this point in the history
  • Loading branch information
koide3 authored Oct 29, 2024
1 parent d686103 commit b24a804
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,11 @@ endif()
# GPU-related
if(BUILD_WITH_CUDA)
if(NOT GTSAM_POINTS_USE_CUDA)
message(FATAL_ERROR "gtsam_points is not built with CUDA!!")
message(WARNING "gtsam_points is not built with CUDA!!")
set(BUILD_WITH_CUDA OFF CACHE BOOL "gtsam_points is not built with CUDA" FORCE)
else()
set(GPU_SRCS src/glim/odometry/odometry_estimation_gpu.cpp)
endif()
set(GPU_SRCS src/glim/odometry/odometry_estimation_gpu.cpp)
endif()

add_library(glim SHARED
Expand Down

0 comments on commit b24a804

Please sign in to comment.