Skip to content

Commit d20dcba

Browse files
committed
no mongo-driver on macos
1 parent 8c4aea7 commit d20dcba

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

contrib/mongo-c-driver-cmake/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
option(USE_MONGODB "Enable MongoDB support" ${ENABLE_LIBRARIES})
2+
3+
if(OS_DARWIN)
4+
message(STATUS "Not using libmongoc and libbson on macOS")
5+
set (USE_MONGODB OFF)
6+
endif()
7+
28
if(NOT USE_MONGODB)
39
message(STATUS "Not using libmongoc and libbson")
410
return()

contrib/mongo-cxx-driver-cmake/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
option(USE_MONGODB "Enable MongoDB support" ${ENABLE_LIBRARIES})
22

3+
if(OS_DARWIN)
4+
message(STATUS "Not using mongocxx and bsoncxx on macOS")
5+
set (USE_MONGODB OFF)
6+
endif()
7+
38
if(NOT USE_MONGODB)
49
message(STATUS "Not using mongocxx and bsoncxx")
510
return()

0 commit comments

Comments
 (0)