vcpkg/ports/mongo-c-driver/fix-static-cmake.patch
Billy O'Neal cd54580d1f
[libbson, mongo-c-driver] Convert to vcpkg.json. (#20039)
* Fixes source writes rather than using DISABLE_PARALLEL_CONFIGURE
* Fixes to use modern vcpkg helpers.
* Fixes to install to the correct include path rather than moving the resulting includes after the fact.
* Remove do-nothign renames.
* Fixes to make static cmake configs find the correct bits.
2021-09-08 11:56:06 -07:00

14 lines
865 B
Diff

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 ()