]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/ceres/0002_use_glog_target.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / ceres / 0002_use_glog_target.patch
CommitLineData
1e59de90
TL
1diff --git a/internal/ceres/CMakeLists.txt b/internal/ceres/CMakeLists.txt
2index 3711222..8646bd0 100644
3--- a/internal/ceres/CMakeLists.txt
4+++ b/internal/ceres/CMakeLists.txt
5@@ -174,17 +174,9 @@ endif (SCHUR_SPECIALIZATIONS)
6 find_package(Threads QUIET)
7 list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES Threads::Threads)
8
9-if (NOT MINIGLOG AND GLOG_FOUND)
10- list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES ${GLOG_LIBRARIES})
11- if (gflags_FOUND)
12- # If glog & gflags are both found, we assume that glog was built with
13- # gflags, as it is awkward to perform a try_compile() to verify this
14- # when gflags is an imported target (as it is in newer versions).
15- # As glog #includes gflags/gflags.h in glog/logging.h if compiled with
16- # gflags, it is thus a public dependency for Ceres in this case.
17- list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES gflags)
18- endif()
19-endif (NOT MINIGLOG AND GLOG_FOUND)
20+if (NOT MINIGLOG)
21+ list(APPEND CERES_LIBRARY_PUBLIC_DEPENDENCIES glog::glog)
22+endif (NOT MINIGLOG)
23
24 if (SUITESPARSE AND SUITESPARSE_FOUND)
25 # Define version information for use in Solver::FullReport.