[arrow] Fix CMake link error (#22387)

* [arrow] Fix CMake link error

* update version

* [arrow] update vcpkg-cmake-wrapper.cmake

* update version

Co-authored-by: Lily Wang <v-lilywang@microsoft.com>
This commit is contained in:
LilyWangLL 2022-01-08 05:57:16 +08:00 committed by GitHub
parent 5e96edc23c
commit 6d27dc93f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 30 additions and 1 deletions

View File

@ -97,8 +97,15 @@ vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/arrow)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/lib/cmake")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/cmake")
configure_file(${CMAKE_CURRENT_LIST_DIR}/vcpkg-cmake-wrapper.cmake ${CURRENT_PACKAGES_DIR}/share/${PORT} @ONLY)
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
file(GLOB PARQUET_FILES ${CURRENT_PACKAGES_DIR}/share/${PORT}/Parquet*)
file(COPY ${PARQUET_FILES} DESTINATION "${CURRENT_PACKAGES_DIR}/share/parquet")
file(REMOVE_RECURSE ${PARQUET_FILES})
file(RENAME ${CURRENT_PACKAGES_DIR}/share/${PORT}/FindParquet.cmake ${CURRENT_PACKAGES_DIR}/share/parquet/FindParquet.cmake)
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")

7
ports/arrow/usage Normal file
View File

@ -0,0 +1,7 @@
The package arrow provides CMake targets:
find_package(Arrow CONFIG REQUIRED)
target_link_libraries(main PRIVATE ${ARROW_LIBRARIES})
find_package(Parquet CONFIG REQUIRED)
target_link_libraries(main PRIVATE ${PARQUET_LIBRARIES})

View File

@ -0,0 +1,9 @@
_find_package(${ARGS})
if(TARGET arrow_static)
list(APPEND ARROW_LIBRARIES arrow_static)
list(APPEND PARQUET_LIBRARIES parquet_static)
elseif (TARGET arrow_shared)
list(APPEND ARROW_LIBRARIES arrow_shared)
list(APPEND PARQUET_LIBRARIES parquet_shared)
endif()

View File

@ -1,6 +1,7 @@
{
"name": "arrow",
"version": "6.0.1",
"port-version": 1,
"description": "Cross-language development platform for in-memory analytics",
"homepage": "https://arrow.apache.org",
"supports": "x64 | (arm64 & !windows)",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "b12626f29cb0ba8a049241153af0dfeca9a810d7",
"version": "6.0.1",
"port-version": 1
},
{
"git-tree": "a192a94717139642a1e9304cdc1ae86850398fb9",
"version": "6.0.1",

View File

@ -170,7 +170,7 @@
},
"arrow": {
"baseline": "6.0.1",
"port-version": 0
"port-version": 1
},
"ashes": {
"baseline": "2021-06-18",