File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -654,19 +654,19 @@ if(EXECUTORCH_BUILD_PYBIND)
654654 target_compile_options (portable_lib PUBLIC ${_pybind_compile_options} )
655655 target_link_libraries (portable_lib PRIVATE ${_dep_libs} )
656656
657- # Set RPATH to find PyTorch libraries relative to the installation location
658- # This goes from executorch/extension/pybindings up to site-packages, then to torch/lib
659- if (APPLE )
660- set_target_properties (portable_lib PROPERTIES
661- BUILD_RPATH "@loader_path/../../../torch/lib"
662- INSTALL_RPATH "@loader_path/../../../torch/lib"
663- )
664- else ()
665- set_target_properties (portable_lib PROPERTIES
666- BUILD_RPATH "$ORIGIN/../../../torch/lib"
667- INSTALL_RPATH "$ORIGIN/../../../torch/lib"
668- )
669- endif ()
657+ # # Set RPATH to find PyTorch libraries relative to the installation location
658+ # # This goes from executorch/extension/pybindings up to site-packages, then to torch/lib
659+ # if(APPLE)
660+ # set_target_properties(portable_lib PROPERTIES
661+ # BUILD_RPATH "@loader_path/../../../torch/lib"
662+ # INSTALL_RPATH "@loader_path/../../../torch/lib"
663+ # )
664+ # else()
665+ # set_target_properties(portable_lib PROPERTIES
666+ # BUILD_RPATH "$ORIGIN/../../../torch/lib"
667+ # INSTALL_RPATH "$ORIGIN/../../../torch/lib"
668+ # )
669+ # endif()
670670
671671 install (TARGETS portable_lib
672672 LIBRARY DESTINATION executorch/extension/pybindings
You can’t perform that action at this time.
0 commit comments