]> git.proxmox.com Git - ceph.git/blame - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/mongo-cxx-driver/fix-dependency-libbson.patch
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / mongo-cxx-driver / fix-dependency-libbson.patch
CommitLineData
1e59de90
TL
1diff --git a/src/bsoncxx/CMakeLists.txt b/src/bsoncxx/CMakeLists.txt
2index 69b53b3..655b33a 100644
3--- a/src/bsoncxx/CMakeLists.txt
4+++ b/src/bsoncxx/CMakeLists.txt
5@@ -78,15 +78,15 @@ set(LIBBSON_REQUIRED_VERSION 1.13.0)
6 set(LIBBSON_REQUIRED_ABI_VERSION 1.0)
7
8 if (BUILD_SHARED_LIBS)
9- find_package(libbson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} REQUIRED)
10+ find_package(bson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} CONFIG REQUIRED)
11 set(libbson_libraries ${BSON_LIBRARIES})
12 set(libbson_include_directories ${BSON_INCLUDE_DIRS})
13 set(libbson_definitions ${BSON_DEFINITIONS})
14 else()
15- find_package(libbson-static-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} REQUIRED)
16- set(libbson_libraries ${BSON_STATIC_LIBRARIES})
17- set(libbson_include_directories ${BSON_STATIC_INCLUDE_DIRS})
18- set(libbson_definitions ${BSON_STATIC_DEFINITIONS})
19+ find_package(bson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} CONFIG REQUIRED)
20+ set(libbson_libraries ${BSON_LIBRARIES})
21+ set(libbson_include_directories ${BSON_INCLUDE_DIRS})
22+ set(libbson_definitions ${BSON_DEFINITIONS})
23 endif()
24
25 add_subdirectory(third_party)