blob: fcaefe71e688779bf9db8e603106c28cdb4ed55f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
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
|