Skip to content

Commit

Permalink
okay, sometimes this variable doesn't exist?
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Mar 1, 2024
1 parent 656d199 commit df6703e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions rerun_cpp/download_and_build_arrow.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,18 @@ function(download_and_build_arrow)
include(ExternalProject)

set(ARROW_DOWNLOAD_PATH ${CMAKE_BINARY_DIR}/arrow)
set(ARROW_LIB_PATH ${ARROW_DOWNLOAD_PATH}/${CMAKE_INSTALL_LIBDIR})
set(ARROW_BIN_PATH ${ARROW_DOWNLOAD_PATH}/${CMAKE_INSTALL_BINDIR})

if(NOT DEFINED CMAKE_INSTALL_LIBDIR OR CMAKE_INSTALL_LIBDIR STREQUAL "")
set(ARROW_LIB_PATH ${ARROW_DOWNLOAD_PATH}/${CMAKE_INSTALL_LIBDIR})
else()
set(ARROW_LIB_PATH ${ARROW_DOWNLOAD_PATH}/lib)
endif()

if(NOT DEFINED CMAKE_INSTALL_BINDIR OR CMAKE_INSTALL_BINDIR STREQUAL "")
set(ARROW_BIN_PATH ${ARROW_DOWNLOAD_PATH}/${CMAKE_INSTALL_BINDIR})
else()
set(ARROW_BIN_PATH ${ARROW_DOWNLOAD_PATH}/bin)
endif()

if(RERUN_ARROW_LINK_SHARED)
set(ARROW_BUILD_SHARED ON)
Expand Down

0 comments on commit df6703e

Please sign in to comment.