[arrow] Fix the problem that feature acero and dataset cannot be used (#31765)

* fix arroeacer not found

* update version

* fix usage

* update version

* fix usage

* update version
This commit is contained in:
jim wang 2023-06-07 05:53:23 +08:00 committed by GitHub
parent 5d3798ac73
commit ba1ae2ec2d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 29 additions and 2 deletions

View File

@ -80,6 +80,14 @@ if("dataset" IN_LIST FEATURES)
)
endif()
if("acero" IN_LIST FEATURES)
vcpkg_cmake_config_fixup(
PACKAGE_NAME arrowacero
CONFIG_PATH lib/cmake/ArrowAcero
DO_NOT_DELETE_PARENT_CONFIG_PATH
)
endif()
if("parquet" IN_LIST FEATURES)
vcpkg_cmake_config_fixup(
PACKAGE_NAME parquet
@ -94,6 +102,14 @@ if("parquet" IN_LIST FEATURES)
file(READ "${CMAKE_CURRENT_LIST_DIR}/usage-parquet" usage-parquet)
file(APPEND "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" "${usage-parquet}")
endif()
if("dataset" IN_LIST FEATURES)
file(READ "${CMAKE_CURRENT_LIST_DIR}/usage-dataset" usage-dataset)
file(APPEND "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" "${usage-dataset}")
endif()
if("acero" IN_LIST FEATURES)
file(READ "${CMAKE_CURRENT_LIST_DIR}/usage-acero" usage-acero)
file(APPEND "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" "${usage-acero}")
endif()
if("example" IN_LIST FEATURES)
file(INSTALL "${SOURCE_PATH}/cpp/examples/minimal_build/" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}/example")

3
ports/arrow/usage-acero Normal file
View File

@ -0,0 +1,3 @@
find_package(ArrowAcero CONFIG REQUIRED)
target_link_libraries(main PRIVATE "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,ArrowAcero::arrow_acero_static,ArrowAcero::arrow_acero_shared>")

View File

@ -0,0 +1,3 @@
find_package(ArrowDataset CONFIG REQUIRED)
target_link_libraries(main PRIVATE "$<IF:$<BOOL:${ARROW_BUILD_STATIC}>,ArrowDataset::arrow_dataset_static,ArrowDataset::arrow_dataset_shared>")

View File

@ -1,7 +1,7 @@
{
"name": "arrow",
"version": "12.0.0",
"port-version": 1,
"port-version": 2,
"description": "Cross-language development platform for in-memory analytics",
"homepage": "https://arrow.apache.org",
"license": "Apache-2.0",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "f4aba951b4604b0846af32c50cf4e6959e0e119d",
"version": "12.0.0",
"port-version": 2
},
{
"git-tree": "4e29a49e78533ec10e3142ae7ad69fdd12c8d163",
"version": "12.0.0",

View File

@ -222,7 +222,7 @@
},
"arrow": {
"baseline": "12.0.0",
"port-version": 1
"port-version": 2
},
"arsenalgear": {
"baseline": "2.1.0",