From d23054285f067744899c982163c4ab7571634319 Mon Sep 17 00:00:00 2001 From: Sutou Kouhei Date: Mon, 28 Aug 2023 05:46:36 +0900 Subject: [PATCH] GH-37408: [C++] Install arrow-compute.pc only when ARROW_COMPUTE=ON --- cpp/src/arrow/compute/CMakeLists.txt | 6 ++++-- cpp/src/arrow/compute/arrow-compute.pc.in | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/cpp/src/arrow/compute/CMakeLists.txt b/cpp/src/arrow/compute/CMakeLists.txt index 1d71c14dca714..1134e0a98ae45 100644 --- a/cpp/src/arrow/compute/CMakeLists.txt +++ b/cpp/src/arrow/compute/CMakeLists.txt @@ -19,8 +19,10 @@ add_custom_target(arrow_compute) arrow_install_all_headers("arrow/compute") -# pkg-config support -arrow_add_pkg_config("arrow-compute") +if(ARROW_COMPUTE) + # pkg-config support + arrow_add_pkg_config("arrow-compute") +endif() # # Unit tests diff --git a/cpp/src/arrow/compute/arrow-compute.pc.in b/cpp/src/arrow/compute/arrow-compute.pc.in index 35bfb51683779..a94a0261cce3b 100644 --- a/cpp/src/arrow/compute/arrow-compute.pc.in +++ b/cpp/src/arrow/compute/arrow-compute.pc.in @@ -20,6 +20,6 @@ includedir=@ARROW_PKG_CONFIG_INCLUDEDIR@ libdir=@ARROW_PKG_CONFIG_LIBDIR@ Name: Apache Arrow Compute -Description: Compute modules for Apache Arrow +Description: All compute kernels for Apache Arrow Version: @ARROW_VERSION@ Requires: arrow