mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-27 19:00:04 +08:00
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)
|