From 5064b5ba47df4e9d14f1a9f41bc85d247aa6421f Mon Sep 17 00:00:00 2001 From: leonarski_f Date: Sat, 20 Jun 2026 16:08:38 +0200 Subject: [PATCH] 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 --- image_analysis/CMakeLists.txt | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/image_analysis/CMakeLists.txt b/image_analysis/CMakeLists.txt index 00996187..6b656767 100644 --- a/image_analysis/CMakeLists.txt +++ b/image_analysis/CMakeLists.txt @@ -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)