vcpkg/ports/mongo-cxx-driver/fix-dependency-mongocdriver.patch

20 lines
940 B
Diff
Raw Normal View History

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)