mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-23 16:12:01 +00:00
fix build with CAPNP
This commit is contained in:
parent
2c4949dd5d
commit
bc5d5bcf4a
@ -208,6 +208,7 @@ if (USE_CAPNP)
|
||||
if (NOT USE_INTERNAL_CAPNP_LIBRARY)
|
||||
target_include_directories (dbms SYSTEM BEFORE PRIVATE ${CAPNP_INCLUDE_DIR})
|
||||
endif ()
|
||||
set (PROTO_LIB clickhouse_proto)
|
||||
endif ()
|
||||
|
||||
if (USE_RDKAFKA)
|
||||
|
@ -6,7 +6,6 @@ add_custom_command (OUTPUT ServerMessage.capnp.c++ ServerMessage.capnp.h
|
||||
COMMAND ${CMAKE_COMMAND} -E env PATH=${CAPNP_PATH} ${CAPNP_BIN} compile -I ${CAPNP_INCLUDE_DIR} -oc++ ServerMessage.capnp
|
||||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/ServerMessage.capnp)
|
||||
|
||||
set (PROTO_LIB clickhouse_proto)
|
||||
add_library (clickhouse_proto ServerMessage.capnp.c++ protoHelpers.cpp)
|
||||
target_link_libraries (clickhouse_proto clickhouse_common_io ${CAPNP_LIBRARY})
|
||||
target_include_directories (clickhouse_proto PUBLIC ${CAPNP_INCLUDE_DIR} ${DBMS_INCLUDE_DIR})
|
||||
|
Loading…
Reference in New Issue
Block a user