File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments