Skip to content

Commit 73a49d1

Browse files
authored
ceres-solver: per default disable CUDA support (#665)
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: #657
1 parent d5cee78 commit 73a49d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cmake/projects/ceres-solver/hunter.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,8 @@ hunter_cmake_args(ceres-solver CMAKE_ARGS
105105
LAPACK=OFF
106106
SUITESPARSE=OFF
107107
CXSPARSE=OFF # since 1.14.0-p0
108+
# user must explicitly opt in to compile wit CUDA support, since v2.1.0-p0
109+
CUDA=OFF
108110
# OpenBLAS flag, alternative to LAPACK since v2.1.0-p0
109111
WITH_OPENBLAS=OFF
110112
# don't build tests

0 commit comments

Comments
 (0)