Skip to content

Commit

Permalink
apacheGH-37408: [C++] Install arrow-compute.pc only when ARROW_COMPUT…
Browse files Browse the repository at this point in the history
…E=ON
  • Loading branch information
kou committed Aug 27, 2023
1 parent c9bfca5 commit d230542
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions cpp/src/arrow/compute/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion cpp/src/arrow/compute/arrow-compute.pc.in
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d230542

Please sign in to comment.