mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-24 02:27:56 +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
20 lines
940 B
Diff
20 lines
940 B
Diff
diff --git a/src/mongocxx/CMakeLists.txt b/src/mongocxx/CMakeLists.txt
|
|
index 64ff936..e4d4e14 100644
|
|
--- a/src/mongocxx/CMakeLists.txt
|
|
+++ b/src/mongocxx/CMakeLists.txt
|
|
@@ -39,10 +39,10 @@ if (BUILD_SHARED_LIBS)
|
|
set(libmongoc_include_directories ${MONGOC_INCLUDE_DIRS})
|
|
set(libmongoc_definitions ${MONGOC_DEFINITIONS})
|
|
else()
|
|
- find_package(libmongoc-static-${LIBMONGOC_REQUIRED_ABI_VERSION} ${LIBMONGOC_REQUIRED_VERSION} REQUIRED)
|
|
- set(libmongoc_libraries ${MONGOC_STATIC_LIBRARIES})
|
|
- set(libmongoc_include_directories ${MONGOC_STATIC_INCLUDE_DIRS})
|
|
- set(libmongoc_definitions ${MONGOC_STATIC_DEFINITIONS})
|
|
+ find_package(libmongoc-${LIBMONGOC_REQUIRED_ABI_VERSION} ${LIBMONGOC_REQUIRED_VERSION} REQUIRED)
|
|
+ set(libmongoc_libraries ${MONGOC_LIBRARIES})
|
|
+ set(libmongoc_include_directories ${MONGOC_INCLUDE_DIRS})
|
|
+ set(libmongoc_definitions ${MONGOC_DEFINITIONS})
|
|
endif()
|
|
|
|
add_subdirectory(config)
|