From b29cb69fb787f82938deb048422370e272b95e45 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Thu, 16 Jan 2025 11:15:29 +0100 Subject: [PATCH] Link with arrow_compute_testing --- cpp/src/arrow/acero/CMakeLists.txt | 5 ++--- cpp/src/arrow/dataset/CMakeLists.txt | 4 ++-- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/cpp/src/arrow/acero/CMakeLists.txt b/cpp/src/arrow/acero/CMakeLists.txt index 7c58df7285648..54269f1df0eb6 100644 --- a/cpp/src/arrow/acero/CMakeLists.txt +++ b/cpp/src/arrow/acero/CMakeLists.txt @@ -109,8 +109,7 @@ endforeach() if(ARROW_TESTING) # test_nodes.cc isn't used by all tests but link to it for simple # CMakeLists.txt. - add_library(arrow_acero_testing OBJECT test_nodes.cc test_util_internal.cc - ../compute/test_util_internal.cc) + add_library(arrow_acero_testing OBJECT test_nodes.cc test_util_internal.cc) # Even though this is still just an object library we still need to "link" our # dependencies so that include paths are configured correctly target_link_libraries(arrow_acero_testing PRIVATE ${ARROW_ACERO_TEST_LINK_LIBS}) @@ -118,7 +117,7 @@ if(ARROW_TESTING) if(ARROW_WITH_OPENTELEMETRY) target_link_libraries(arrow_acero_testing PRIVATE ${ARROW_OPENTELEMETRY_LIBS}) endif() - list(APPEND ARROW_ACERO_TEST_LINK_LIBS arrow_acero_testing) + list(APPEND ARROW_ACERO_TEST_LINK_LIBS arrow_acero_testing arrow_compute_testing) endif() # Only for hash_aggregate_test.cc. if(ARROW_USE_BOOST) diff --git a/cpp/src/arrow/dataset/CMakeLists.txt b/cpp/src/arrow/dataset/CMakeLists.txt index bdb89ee8914f8..e99593f669b8e 100644 --- a/cpp/src/arrow/dataset/CMakeLists.txt +++ b/cpp/src/arrow/dataset/CMakeLists.txt @@ -106,10 +106,10 @@ endif() if(ARROW_TEST_LINKAGE STREQUAL "static") set(ARROW_DATASET_TEST_LINK_LIBS arrow_dataset_static arrow_acero_testing - ${ARROW_TEST_STATIC_LINK_LIBS}) + arrow_compute_testing ${ARROW_TEST_STATIC_LINK_LIBS}) else() set(ARROW_DATASET_TEST_LINK_LIBS arrow_dataset_shared arrow_acero_testing - ${ARROW_TEST_SHARED_LINK_LIBS}) + arrow_compute_testing ${ARROW_TEST_SHARED_LINK_LIBS}) endif() foreach(LIB_TARGET ${ARROW_DATASET_LIBRARIES})