From bd1ea104fe9cebc5ac894a34331b23c0b46a1f3d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Wed, 15 Feb 2023 12:09:58 +0800 Subject: [PATCH] build: cmake: set more properties to alternator library alternator headers are exposed to the target which links against it, so let's expose them using the `target_include_directories()`. also, `alternator` uses Seastar library and uses xxHash indirectly. we should fix the latter by exposing the included header instead, but for now, let's just link alternator directly to xxHash. Signed-off-by: Kefu Chai --- alternator/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/alternator/CMakeLists.txt b/alternator/CMakeLists.txt index 1395515ea4..8a1af4a2f4 100644 --- a/alternator/CMakeLists.txt +++ b/alternator/CMakeLists.txt @@ -17,3 +17,10 @@ target_sources(alternator streams.cc ttl.cc ${cql_grammar_srcs}) +target_include_directories(alternator + PUBLIC + ${CMAKE_SOURCE_DIR} + ${CMAKE_BINARY_DIR}) +target_link_libraries(alternator + Seastar::seastar + xxHash::xxhash)