pineapple/externals/vcpkg/ports/mongo-c-driver/fix-static-cmake.patch

14 lines
865 B
Diff
Raw Normal View History

2022-07-23 03:01:36 +02:00
diff --git a/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in b/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
index c23da9f..05c03e8 100644
--- a/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
+++ b/src/libmongoc/build/cmake/libmongoc-static-1.0-config.cmake.in
@@ -30,7 +30,7 @@ list (APPEND MONGOC_STATIC_INCLUDE_DIRS ${BSON_STATIC_INCLUDE_DIRS})
# directory and the base name, but not the suffix, so we use CMake's
# find_library () to pick that up. Users can override this by configuring
# MONGOC_STATIC_LIBRARY themselves.
-find_library (MONGOC_STATIC_LIBRARY mongoc-static-1.0 PATHS "@PACKAGE_LIBRARY_INSTALL_DIRS@" NO_DEFAULT_PATH)
+find_library (MONGOC_STATIC_LIBRARY mongoc-1.0 PATHS "@PACKAGE_LIBRARY_INSTALL_DIRS@" NO_DEFAULT_PATH)
if (MSVC)
set (MONGOC_STATIC_LIB_EXT "lib")
else ()