2020-05-02 03:43:06 +08:00
|
|
|
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)
|
2021-06-10 05:45:10 +08:00
|
|
|
+ find_package(libbson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} CONFIG REQUIRED)
|
2020-05-02 03:43:06 +08:00
|
|
|
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})
|
2021-06-10 05:45:10 +08:00
|
|
|
+ find_package(libbson-${LIBBSON_REQUIRED_ABI_VERSION} ${LIBBSON_REQUIRED_VERSION} CONFIG REQUIRED)
|
2020-05-02 03:43:06 +08:00
|
|
|
+ set(libbson_libraries ${BSON_LIBRARIES})
|
|
|
|
+ set(libbson_include_directories ${BSON_INCLUDE_DIRS})
|
|
|
|
+ set(libbson_definitions ${BSON_DEFINITIONS})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
add_subdirectory(third_party)
|