diff --git a/plugins/mongo_db_plugin/CMakeLists.txt b/plugins/mongo_db_plugin/CMakeLists.txt index 0882550c947..29f45bd6808 100644 --- a/plugins/mongo_db_plugin/CMakeLists.txt +++ b/plugins/mongo_db_plugin/CMakeLists.txt @@ -10,7 +10,7 @@ if(BUILD_MONGO_DB_PLUGIN) find_package(libbson-static-1.0 REQUIRED) else() - message("Could NOT find MongoDB. mongo_db_plugin with MongoDB support will not be included.") + message(FATAL_ERROR "Could NOT find mongo-c-driver. Disable mongo support or ensure mongo-c-driver and mongo-cxx-driver is built and installed") return() endif()