Skip to content

Commit

Permalink
fix(interactive): Resolve issues when finding arrow on some platforms (
Browse files Browse the repository at this point in the history
…#4290)

Manually fix backward support issues for `Arrow`. Fix #4287
  • Loading branch information
zhanglei1949 authored Oct 16, 2024
1 parent 0aa119e commit 480a7bb
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions flex/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -142,13 +142,17 @@ if (NOT Arrow_FOUND)
else ()
include_directories(SYSTEM ${ARROW_INCLUDE_DIR})
if (USE_STATIC_ARROW)
if (TARGET arrow_static)
if (TARGET Arrow::arrow_static)
set(ARROW_LIB Arrow::arrow_static)
elseif (TARGET arrow_static) # For backward compatibility, see https://arrow.apache.org/docs/cpp/build_system.html#available-variables-and-targets
set(ARROW_LIB arrow_static)
else()
message(FATAL_ERROR "Building with USE_STATIC_ARROW=ON, but arrow_static target not found")
endif()
else ()
if (TARGET arrow_shared)
if (TARGET Arrow::arrow_shared)
set(ARROW_LIB Arrow::arrow_shared)
elseif (TARGET arrow_shared) # For backward compatibility
set(ARROW_LIB arrow_shared)
else()
message(FATAL_ERROR "Building with USE_STATIC_ARROW=OFF, but arrow_shared target not found")
Expand Down

0 comments on commit 480a7bb

Please sign in to comment.