mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-30 07:47:49 +08:00
939eaca496
* update to 3.9.0 * update version * update libbson * update version * Fix static compilation issue * update version * patch * update version * patch * update version
48 lines
2.5 KiB
Diff
48 lines
2.5 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index a1b60bd..78c6907 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -100,7 +100,6 @@ if(NEED_DOWNLOAD_C_DRIVER)
|
|
set(BUILD_TESTING OFF)
|
|
string(REPLACE " -Werror" "" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
|
|
string(REPLACE " -Werror" "" CMAKE_C_FLAGS "${CMAKE_C_FLAGS}")
|
|
- add_subdirectory(${mongo-c-driver_SOURCE_DIR} ${mongo-c-driver_BINARY_DIR})
|
|
set(CMAKE_CXX_FLAGS ${OLD_CMAKE_CXX_FLAGS})
|
|
set(CMAKE_C_FLAGS ${OLD_CMAKE_C_FLAGS})
|
|
set(ENABLE_TESTS ${OLD_ENABLE_TESTS})
|
|
diff --git a/src/bsoncxx/CMakeLists.txt b/src/bsoncxx/CMakeLists.txt
|
|
index 1e241f5..adf9a27 100644
|
|
--- a/src/bsoncxx/CMakeLists.txt
|
|
+++ b/src/bsoncxx/CMakeLists.txt
|
|
@@ -105,7 +105,7 @@ else()
|
|
else()
|
|
# Require package of old libbson name (with lib).
|
|
if(NOT BSONCXX_LINK_WITH_STATIC_MONGOC)
|
|
- find_package(libbson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} REQUIRED)
|
|
+ find_package(libbson-${LIBBSON_REQUIRED_ABI_VERSION} REQUIRED)
|
|
message(STATUS "found libbson version ${BSON_VERSION}")
|
|
set(libbson_target ${BSON_LIBRARIES})
|
|
set(libbson_include_directories ${BSON_INCLUDE_DIRS})
|
|
diff --git a/src/mongocxx/CMakeLists.txt b/src/mongocxx/CMakeLists.txt
|
|
index 4fe323f..2e27410 100644
|
|
--- a/src/mongocxx/CMakeLists.txt
|
|
+++ b/src/mongocxx/CMakeLists.txt
|
|
@@ -41,7 +41,7 @@ if(TARGET mongoc_shared OR TARGET mongoc_static)
|
|
set(MONGOCXX_PKG_DEP "find_dependency(mongoc-${LIBMONGOC_REQUIRED_ABI_VERSION} REQUIRED)")
|
|
else()
|
|
# Attempt to find libmongoc by new package name (without lib).
|
|
- find_package(mongoc-${LIBMONGOC_REQUIRED_ABI_VERSION} ${LIBMONGOC_REQUIRED_VERSION} QUIET)
|
|
+ find_package(mongoc-${LIBMONGOC_REQUIRED_ABI_VERSION} CONFIG REQUIRED)
|
|
|
|
if(mongoc-${LIBMONGOC_REQUIRED_ABI_VERSION}_FOUND)
|
|
message(STATUS "found libmongoc version ${mongoc-${LIBMONGOC_REQUIRED_ABI_VERSION}_VERSION}")
|
|
@@ -56,7 +56,7 @@ else()
|
|
else()
|
|
# Require package of old libmongoc name (with lib).
|
|
if(NOT MONGOCXX_LINK_WITH_STATIC_MONGOC)
|
|
- find_package(libmongoc-${LIBMONGOC_REQUIRED_ABI_VERSION} ${LIBMONGOC_REQUIRED_VERSION} REQUIRED)
|
|
+ find_package(libmongoc-${LIBMONGOC_REQUIRED_ABI_VERSION} REQUIRED)
|
|
message(STATUS "found libmongoc version ${MONGOC_VERSION}")
|
|
set(libmongoc_target ${MONGOC_LIBRARIES})
|
|
set(libmongoc_definitions ${MONGOC_DEFINITIONS})
|