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.
This commit is contained in:
Markus Mäkelä 2018-03-03 19:56:53 +02:00
parent f066ba8753
commit 93f3529bb4
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -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()