Skip to content

Commit

Permalink
PARQUET-903: Add option to set RPATH to origin
Browse files Browse the repository at this point in the history
Dependency of ARROW-566

Author: Uwe L. Korn <uwe@apache.org>

Closes apache#265 from xhochy/PARQUET-903 and squashes the following commits:

3519c33 [Uwe L. Korn] PARQUET-903: Add option to set RPATH to origin

Change-Id: I7b5df6dcbe53dead7342627e32071a99301850a8
  • Loading branch information
xhochy authored and wesm committed Mar 7, 2017
1 parent 5c9b4c6 commit fb9013d
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion cpp/src/parquet/arrow/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,15 @@ if (PARQUET_BUILD_SHARED)
arrow
arrow_io
parquet_shared)
if (APPLE)
if (PARQUET_RPATH_ORIGIN)
if (APPLE)
set(_lib_install_rpath "@loader_path")
else()
set(_lib_install_rpath "\$ORIGIN")
endif()
set_target_properties(parquet_arrow_shared PROPERTIES
INSTALL_RPATH ${_lib_install_rpath})
elseif (APPLE)
set_target_properties(parquet_arrow_shared
PROPERTIES
BUILD_WITH_INSTALL_RPATH ON
Expand Down

0 comments on commit fb9013d

Please sign in to comment.