mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 20:46:41 +08:00
26577fd0ad
* [libbson/mongo-c-driver] Update to 1.16.1 * [libbson] Refix static build * [mongo-c-driver] Re-fix dependency libbson and dynamic build * [mongo-c-driver] Fix generate cmake file * [mongo-cxx-driver] Fix find libbson * [mongo-c-driver] Fix generate cmake file when building static * [mongo-cxx-driver] Fix dependency mongo-c-driver * update version info * [mongo-c-driver] Update patch * [mongo-c-driver] Re-generate patch. * [mongo-c-driver] Re-generate patch
26 lines
1.2 KiB
Diff
26 lines
1.2 KiB
Diff
diff --git a/src/bsoncxx/CMakeLists.txt b/src/bsoncxx/CMakeLists.txt
|
|
index 69b53b3..655b33a 100644
|
|
--- a/src/bsoncxx/CMakeLists.txt
|
|
+++ b/src/bsoncxx/CMakeLists.txt
|
|
@@ -78,15 +78,15 @@ set(LIBBSON_REQUIRED_VERSION 1.13.0)
|
|
set(LIBBSON_REQUIRED_ABI_VERSION 1.0)
|
|
|
|
if (BUILD_SHARED_LIBS)
|
|
- find_package(libbson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} REQUIRED)
|
|
+ find_package(bson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} CONFIG REQUIRED)
|
|
set(libbson_libraries ${BSON_LIBRARIES})
|
|
set(libbson_include_directories ${BSON_INCLUDE_DIRS})
|
|
set(libbson_definitions ${BSON_DEFINITIONS})
|
|
else()
|
|
- find_package(libbson-static-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} REQUIRED)
|
|
- set(libbson_libraries ${BSON_STATIC_LIBRARIES})
|
|
- set(libbson_include_directories ${BSON_STATIC_INCLUDE_DIRS})
|
|
- set(libbson_definitions ${BSON_STATIC_DEFINITIONS})
|
|
+ find_package(bson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} CONFIG REQUIRED)
|
|
+ set(libbson_libraries ${BSON_LIBRARIES})
|
|
+ set(libbson_include_directories ${BSON_INCLUDE_DIRS})
|
|
+ set(libbson_definitions ${BSON_DEFINITIONS})
|
|
endif()
|
|
|
|
add_subdirectory(third_party)
|