Skip to content

Commit

Permalink
Use arrow_add_pkg_config()
Browse files Browse the repository at this point in the history
  • Loading branch information
shiro615 committed Jun 19, 2019
1 parent e7a4057 commit 202b1f7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
4 changes: 1 addition & 3 deletions cpp/src/arrow/adapters/orc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
install(FILES adapter.h DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/arrow/adapters/orc")

# pkg-config support
configure_file(arrow-orc.pc.in "${CMAKE_CURRENT_BINARY_DIR}/arrow-orc.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/arrow-orc.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
arrow_add_pkg_config("arrow-orc")

set(ORC_MIN_TEST_LIBS GTest::Main GTest::GTest)

Expand Down
4 changes: 1 addition & 3 deletions cpp/src/arrow/dataset/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ add_custom_target(arrow_dataset)
arrow_install_all_headers("arrow/dataset")

# pkg-config support
configure_file(arrow-dataset.pc.in "${CMAKE_CURRENT_BINARY_DIR}/arrow-dataset.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/arrow-dataset.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
arrow_add_pkg_config("arrow-dataset")

set(ARROW_DATASET_SRCS scanner.cc)

Expand Down
4 changes: 1 addition & 3 deletions cpp/src/arrow/flight/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@ add_custom_target(arrow_flight)
arrow_install_all_headers("arrow/flight")

# pkg-config support
configure_file(arrow-flight.pc.in "${CMAKE_CURRENT_BINARY_DIR}/arrow-flight.pc" @ONLY)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/arrow-flight.pc"
DESTINATION "${CMAKE_INSTALL_LIBDIR}/pkgconfig/")
arrow_add_pkg_config("arrow-flight")

set(ARROW_FLIGHT_STATIC_LINK_LIBS
protobuf::libprotobuf
Expand Down

0 comments on commit 202b1f7

Please sign in to comment.