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:
@ -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()
|
||||
|
Reference in New Issue
Block a user