Fix Travis builds
The maxavro requires some special libraries which aren't always available. For this reason, the maxavro library shouldn't be build unless all libraries are available.
This commit is contained in:
@ -1,8 +1,10 @@
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_library(maxavro maxavro.c maxavro_schema.c maxavro_record.c maxavro_file.c)
|
||||
target_link_libraries(maxavro maxscale-common jansson)
|
||||
if (AVRO_FOUND)
|
||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
||||
add_library(maxavro maxavro.c maxavro_schema.c maxavro_record.c maxavro_file.c)
|
||||
target_link_libraries(maxavro maxscale-common jansson)
|
||||
|
||||
add_executable(maxavrocheck maxavrocheck.c)
|
||||
target_link_libraries(maxavrocheck maxavro)
|
||||
install_executable(maxavrocheck core)
|
||||
add_subdirectory(test)
|
||||
add_executable(maxavrocheck maxavrocheck.c)
|
||||
target_link_libraries(maxavrocheck maxavro)
|
||||
install_executable(maxavrocheck core)
|
||||
add_subdirectory(test)
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user