Skip to content

Commit

Permalink
Initial
Browse files Browse the repository at this point in the history
  • Loading branch information
PHILO-HE committed Jul 1, 2024
1 parent 0ef0ac8 commit 7d472f3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CMake/FindArrow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ if("${ARROW_LIB}" STREQUAL "ARROW_LIB-NOTFOUND"
set(Arrow_FOUND false)
return()
endif()
find_package(Thrift)
if(NOT Thrift_FOUND)
# Requires build arrow from source with thrift bundled.
set(Arrow_FOUND false)
return()
endif()
add_library(thrift ALIAS thrift::thrift)

set(Arrow_FOUND true)

add_library(arrow STATIC IMPORTED GLOBAL)
Expand All @@ -32,6 +40,7 @@ set_target_properties(
arrow arrow_testing parquet PROPERTIES INTERFACE_INCLUDE_DIRECTORIES
${ARROW_INCLUDE_PATH})
set_target_properties(arrow PROPERTIES IMPORTED_LOCATION ${ARROW_LIB})
set_property(TARGET arrow PROPERTY INTERFACE_LINK_LIBRARIES thrift)
set_target_properties(parquet PROPERTIES IMPORTED_LOCATION ${PARQUET_LIB})
set_target_properties(arrow_testing PROPERTIES IMPORTED_LOCATION
${ARROW_TESTING_LIB})

0 comments on commit 7d472f3

Please sign in to comment.