mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 14:58:00 +08:00
[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:
parent
5e96edc23c
commit
6d27dc93f7
@ -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
7
ports/arrow/usage
Normal 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})
|
9
ports/arrow/vcpkg-cmake-wrapper.cmake
Normal file
9
ports/arrow/vcpkg-cmake-wrapper.cmake
Normal 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()
|
@ -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)",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "b12626f29cb0ba8a049241153af0dfeca9a810d7",
|
||||
"version": "6.0.1",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "a192a94717139642a1e9304cdc1ae86850398fb9",
|
||||
"version": "6.0.1",
|
||||
|
@ -170,7 +170,7 @@
|
||||
},
|
||||
"arrow": {
|
||||
"baseline": "6.0.1",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"ashes": {
|
||||
"baseline": "2021-06-18",
|
||||
|
Loading…
x
Reference in New Issue
Block a user