vcpkg/ports/mongo-cxx-driver/fix-dependency-mongocdriver.patch
Jack·Boos·Yu 26577fd0ad
[libbson/mongo-c-driver] Update to 1.16.1 ()
* [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
2020-05-01 12:43:06 -07:00

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)