Skip to content

Commit 888f3ae

Browse files
committed
Test
1 parent 13628b8 commit 888f3ae

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

CMakeLists.txt

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -880,21 +880,21 @@ if(EXECUTORCH_BUILD_PYBIND)
880880
# Set RPATH to find PyTorch libraries relative to the installation location
881881
# This goes from executorch/extension/pybindings up to site-packages, then to
882882
# torch/lib
883-
if(APPLE)
884-
get_target_property(existing_rpath portable_lib INSTALL_RPATH)
885-
string(FIND "${existing_rpath}" "@loader_path" pos)
886-
if(pos EQUAL -1)
887-
set_target_properties(
888-
portable_lib PROPERTIES BUILD_RPATH "@loader_path/../../../torch/lib"
889-
INSTALL_RPATH "@loader_path/../../../torch/lib"
890-
)
891-
endif()
892-
else()
893-
set_target_properties(
894-
portable_lib PROPERTIES BUILD_RPATH "$ORIGIN/../../../torch/lib"
895-
INSTALL_RPATH "$ORIGIN/../../../torch/lib"
896-
)
897-
endif()
883+
# if(APPLE)
884+
# get_target_property(existing_rpath portable_lib INSTALL_RPATH)
885+
# string(FIND "${existing_rpath}" "@loader_path" pos)
886+
# if(pos EQUAL -1)
887+
# set_target_properties(
888+
# portable_lib PROPERTIES BUILD_RPATH "@loader_path/../../../torch/lib"
889+
# INSTALL_RPATH "@loader_path/../../../torch/lib"
890+
# )
891+
# endif()
892+
# else()
893+
# set_target_properties(
894+
# portable_lib PROPERTIES BUILD_RPATH "$ORIGIN/../../../torch/lib"
895+
# INSTALL_RPATH "$ORIGIN/../../../torch/lib"
896+
# )
897+
# endif()
898898

899899
install(
900900
TARGETS portable_lib

0 commit comments

Comments
 (0)