From 93f3529bb4d375fca35a43f03ce94b4d505bbdb6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sat, 3 Mar 2018 19:56:53 +0200 Subject: [PATCH] MXS-1697: Treat missing libraries as an error If the avrorouter is being build and the required libraries are not found, the configuration process should fail. Adding the command to bypass this into the error message should make it easier to disable this part if it is not needed. --- server/modules/routing/avrorouter/CMakeLists.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/modules/routing/avrorouter/CMakeLists.txt b/server/modules/routing/avrorouter/CMakeLists.txt index d23a4e986..0fe35de54 100644 --- a/server/modules/routing/avrorouter/CMakeLists.txt +++ b/server/modules/routing/avrorouter/CMakeLists.txt @@ -11,5 +11,6 @@ if(AVRO_FOUND AND JANSSON_FOUND) add_subdirectory(test) endif() else() - message(STATUS "No Avro C or Jansson libraries found, not building avrorouter.") + message(FATAL_ERROR "No Avro C or Jansson libraries found, cannot build avrorouter. " + "Use the -DBUILD_CDC=N option to `cmake` to disable building of the avrorouter.") endif()