no mongo-driver on macos

This commit is contained in:
vdimir 2024-09-25 12:09:41 +00:00
parent 8c4aea735a
commit d20dcba358
No known key found for this signature in database
GPG Key ID: 6EE4CE2BEDC51862
2 changed files with 11 additions and 0 deletions

View File

@ -1,4 +1,10 @@
option(USE_MONGODB "Enable MongoDB support" ${ENABLE_LIBRARIES})
if(OS_DARWIN)
message(STATUS "Not using libmongoc and libbson on macOS")
set (USE_MONGODB OFF)
endif()
if(NOT USE_MONGODB)
message(STATUS "Not using libmongoc and libbson")
return()

View File

@ -1,5 +1,10 @@
option(USE_MONGODB "Enable MongoDB support" ${ENABLE_LIBRARIES})
if(OS_DARWIN)
message(STATUS "Not using mongocxx and bsoncxx on macOS")
set (USE_MONGODB OFF)
endif()
if(NOT USE_MONGODB)
message(STATUS "Not using mongocxx and bsoncxx")
return()