summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorOlivier Bertrand <bertrandop@gmail.com>2017-09-11 16:23:06 +0200
committerOlivier Bertrand <bertrandop@gmail.com>2017-09-11 16:23:06 +0200
commitbf34e9db7be5baf64d131ce7c793be77172e4ed2 (patch)
tree236959c56405aafea3666b195c9d88183d5b3db7 /storage
parent7e65bdba7b1e6f5aa7ac08d5c886b04c53c4da50 (diff)
downloadmariadb-git-bf34e9db7be5baf64d131ce7c793be77172e4ed2.tar.gz
Enable MONGO for the C driver. Modified: modified: storage/connect/CMakeLists.txt
Diffstat (limited to 'storage')
-rw-r--r--storage/connect/CMakeLists.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/storage/connect/CMakeLists.txt b/storage/connect/CMakeLists.txt
index a2e30cc2689..9c02a60e6b3 100644
--- a/storage/connect/CMakeLists.txt
+++ b/storage/connect/CMakeLists.txt
@@ -313,7 +313,10 @@ IF(CONNECT_WITH_MONGO)
add_definitions(-DCMGO_SUPPORT)
IF (NOT JAVA_FOUND AND JNI_FOUND)
SET(CONNECT_SOURCES ${CONNECT_SOURCES} mongo.cpp mongo.h)
- add_definitions(-DMONGO_SUPPORT)
+ add_definitions(-DMONGO_SUPPORT -DMONGO_ENABLED=1)
+ ELSE ()
+ remove_definitions(-DMONGO_ENABLED=0)
+ add_definitions(-DMONGO_ENABLED=1)
ENDIF (NOT JAVA_FOUND AND JNI_FOUND)
ENDIF(libmongoc-1.0_FOUND)
ENDIF(CONNECT_WITH_MONGO)
@@ -368,5 +371,3 @@ IF(CONNECT_WITH_JDBC AND JAVA_FOUND AND JNI_FOUND)
DESTINATION ${INSTALL_PLUGINDIR} COMPONENT connect-engine)
ENDIF()
-
-