diff --git a/internal/ceres/CMakeLists.txt b/internal/ceres/CMakeLists.txt index f9fc2415..0aaabe4d 100644 --- a/internal/ceres/CMakeLists.txt +++ b/internal/ceres/CMakeLists.txt @@ -85,7 +85,7 @@ endif (SCHUR_SPECIALIZATIONS) SKIP_UNITY_BUILD_INCLUSION ON) if (NOT MINIGLOG AND GLOG_FOUND) - list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES ${GLOG_LIBRARIES}) + list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES glog::glog) if (gflags_FOUND) # If glog & gflags are both found, we assume that glog was built with # gflags, as it is awkward to perform a try_compile() to verify this