mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-19 12:27:50 +08:00
68c63203e6
* get latest version * libbson 1.17.6 * Updated patches * bson sha * Mongoc upgraded to 1.17.6 * updated sha * Updated mongoc to latest * updated sha * upgraded mongo-cxx * manifest fix * updated sha * PR comments * updated sha * fixed missing dependency. deleted unused patch * sha * PR comments * sha * Use modern cmake helpers for mongo-cxx-driver. * Rebuild version database. Co-authored-by: Billy Robert ONeal III <bion@microsoft.com> Co-authored-by: NancyLi1013 <lirui09@beyondsoft.com>
25 lines
1.3 KiB
Diff
25 lines
1.3 KiB
Diff
diff --git a/src/libmongoc/CMakeLists.txt b/src/libmongoc/CMakeLists.txt
|
|
index 5b7f448f2..8881f5194 100644
|
|
--- a/src/libmongoc/CMakeLists.txt
|
|
+++ b/src/libmongoc/CMakeLists.txt
|
|
@@ -729,6 +729,9 @@ if (NOT MONGOC_ENABLE_STATIC_BUILD)
|
|
add_library (mongoc_shared SHARED ${SOURCES} ${HEADERS} ${HEADERS_FORWARDING})
|
|
set_target_properties (mongoc_shared PROPERTIES CMAKE_CXX_VISIBILITY_PRESET hidden)
|
|
target_link_libraries (mongoc_shared PRIVATE ${LIBRARIES} PUBLIC mongo::bson_shared)
|
|
+if (WIN32)
|
|
+ target_link_libraries (mongoc_shared PRIVATE Advapi32)
|
|
+endif()
|
|
target_include_directories (mongoc_shared BEFORE PUBLIC ${MONGOC_INTERNAL_INCLUDE_DIRS})
|
|
target_include_directories (mongoc_shared PRIVATE ${ZLIB_INCLUDE_DIRS})
|
|
target_include_directories (mongoc_shared PRIVATE ${LIBMONGOCRYPT_INCLUDE_DIRECTORIES})
|
|
@@ -749,6 +752,9 @@ set_target_properties (mongoc_shared PROPERTIES OUTPUT_NAME "${MONGOC_OUTPUT_BAS
|
|
else ()
|
|
add_library (mongoc_static STATIC ${SOURCES} ${HEADERS} ${HEADERS_FORWARDING})
|
|
target_link_libraries (mongoc_static ${STATIC_LIBRARIES} mongo::bson_static)
|
|
+ if (WIN32)
|
|
+ target_link_libraries (mongoc_static Advapi32)
|
|
+ endif()
|
|
if (NOT WIN32 AND ENABLE_PIC)
|
|
target_compile_options (mongoc_static PUBLIC -fPIC)
|
|
message ("Adding -fPIC to compilation of mongoc_static components")
|