image_analysis: force Ceres to build without CUDA

USE_CUDA is a Ceres cache STRING (default "default" = auto-detect), not an
option(), so a plain SET was shadowed by the cache default and CUDA got
enabled on MSVC. Force it OFF in the cache instead.

Also drop two dead settings: MINIGLOG (Ceres uses abseil logging now, no
longer referenced) and EIGENSPARSE ON (already Ceres' default).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-20 16:08:38 +02:00
co-authored by Claude Opus 4.8
parent a89a4c5beb
commit 5064b5ba47
+1 -3
View File
@@ -1,7 +1,5 @@
SET(MINIGLOG ON)
SET(PROVIDE_UNINSTALL_TARGET OFF)
SET(USE_CUDA OFF)
SET(EIGENSPARSE ON)
SET(USE_CUDA OFF CACHE BOOL "Force Ceres to build without CUDA" FORCE)
# Prevent MKL from being found (guarantees no MKL)
SET(CMAKE_DISABLE_FIND_PACKAGE_MKL TRUE)