Skip to content

Commit

Permalink
ceres-solver: per default disable CUDA support (cpp-pm#665)
Browse files Browse the repository at this point in the history
The latest ceres-solver `v2.1.0-p1` version tries to build against
CUDA, introducing an unwanted runtime dependency.

The user should explicitly choose to build against system CUDA
libraries (or provided by hunter).

Fixes: cpp-pm#657
  • Loading branch information
NeroBurner authored Mar 16, 2023
1 parent d5cee78 commit 73a49d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmake/projects/ceres-solver/hunter.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ hunter_cmake_args(ceres-solver CMAKE_ARGS
LAPACK=OFF
SUITESPARSE=OFF
CXSPARSE=OFF # since 1.14.0-p0
# user must explicitly opt in to compile wit CUDA support, since v2.1.0-p0
CUDA=OFF
# OpenBLAS flag, alternative to LAPACK since v2.1.0-p0
WITH_OPENBLAS=OFF
# don't build tests
Expand Down

0 comments on commit 73a49d1

Please sign in to comment.