Skip to content

Commit

Permalink
grpc: add common grammar dependency for cmake
Browse files Browse the repository at this point in the history
Signed-off-by: Attila Szakacs <[email protected]>
  • Loading branch information
alltilla committed Dec 5, 2024
1 parent d31ea5b commit a95b3f8
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/grpc/bigquery/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ add_module(
add_module(
TARGET bigquery
GRAMMAR bigquery-grammar
GRAMMAR_DEPENDS ${GRPC_COMMON_GRAMMAR}
DEPENDS bigquery-cpp grpc-common-cpp
INCLUDES ${PROJECT_SOURCE_DIR}/modules/grpc
SOURCES ${BIGQUERY_SOURCES}
Expand Down
1 change: 1 addition & 0 deletions modules/grpc/clickhouse/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ add_module(
add_module(
TARGET clickhouse
GRAMMAR clickhouse-grammar
GRAMMAR_DEPENDS ${GRPC_COMMON_GRAMMAR}
DEPENDS clickhouse-cpp grpc-common-cpp
INCLUDES ${PROJECT_SOURCE_DIR}/modules/grpc
SOURCES ${CLICKHOUSE_SOURCES}
Expand Down
2 changes: 2 additions & 0 deletions modules/grpc/common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ set(GRPC_COMMON_CPP_SOURCES
grpc-source-worker.hpp
grpc-source-worker.cpp)

set(GRPC_COMMON_GRAMMAR ${PROJECT_SOURCE_DIR}/modules/grpc/common/grpc-grammar.ym PARENT_SCOPE)

add_module(
TARGET grpc-common-cpp
SOURCES ${GRPC_COMMON_CPP_SOURCES}
Expand Down
1 change: 1 addition & 0 deletions modules/grpc/loki/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ add_module(
add_module(
TARGET loki
GRAMMAR loki-grammar
GRAMMAR_DEPENDS ${GRPC_COMMON_GRAMMAR}
DEPENDS loki-cpp grpc-common-cpp
INCLUDES ${PROJECT_SOURCE_DIR}/modules/grpc
SOURCES ${LOKI_SOURCES}
Expand Down
1 change: 1 addition & 0 deletions modules/grpc/otel/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ add_module(
add_module(
TARGET otel
GRAMMAR otel-grammar
GRAMMAR_DEPENDS ${GRPC_COMMON_GRAMMAR}
DEPENDS otel-cpp grpc-common-cpp
INCLUDES ${PROJECT_SOURCE_DIR}/modules/grpc
SOURCES ${OTEL_SOURCES}
Expand Down
1 change: 1 addition & 0 deletions modules/grpc/pubsub/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ add_module(
TARGET pubsub
GRAMMAR pubsub-grammar
DEPENDS pubsub-cpp grpc-common-cpp
GRAMMAR_DEPENDS ${GRPC_COMMON_GRAMMAR}
INCLUDES ${PROJECT_SOURCE_DIR}/modules/grpc
SOURCES ${PUBSUB_SOURCES}
)
Expand Down

0 comments on commit a95b3f8

Please sign in to comment.