diff options
Diffstat (limited to 'extern/ceres')
-rw-r--r-- | extern/ceres/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/extern/ceres/CMakeLists.txt b/extern/ceres/CMakeLists.txt index 7653bc4852f..d91e64b8fd0 100644 --- a/extern/ceres/CMakeLists.txt +++ b/extern/ceres/CMakeLists.txt @@ -257,9 +257,14 @@ set(SRC ) set(LIB - extern_glog ) +if(WITH_LIBMV OR WITH_GTESTS OR (WITH_CYCLES AND WITH_CYCLES_LOGGING)) + list(APPEND LIB + extern_glog + ) +endif() + if(WITH_LIBMV_SCHUR_SPECIALIZATIONS) list(APPEND SRC internal/ceres/generated/partitioned_matrix_view_2_2_2.cc |