This repository was archived by the owner on Jan 3, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/ngraph/runtime/plaidml Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change 1313# See the License for the specific language governing permissions and
1414# limitations under the License.
1515# ******************************************************************************
16- set (CMAKE_MACOSX_RPATH 1)
17- if (APPLE )
18- set (CMAKE_INSTALL_RPATH "@loader_path/;@loader_path/../../.." )
19- elseif (DEFINED NGRAPH_RPATH)
20- set (CMAKE_INSTALL_RPATH "\$ ORIGIN;\$ ORIGIN/../../../;${NGRAPH_RPATH} " )
21- else ()
22- set (CMAKE_INSTALL_RPATH "\$ ORIGIN;\$ ORIGIN/../../../" )
23- endif ()
2416
2517set (SRC
2618 plaidml_backend.cpp
@@ -83,3 +75,11 @@ target_include_directories(plaidml_backend SYSTEM PUBLIC ${PLAIDML_INCLUDE_DIRS}
8375target_link_libraries (plaidml_backend PUBLIC ngraph libplaidml)
8476install (TARGETS plaidml_backend LIBRARY DESTINATION ${NGRAPH_INSTALL_LIB} )
8577
78+ set (CMAKE_MACOSX_RPATH 1)
79+ if (APPLE )
80+ set_property (TARGET plaidml_backend PROPERTY INSTALL_RPATH "@loader_path/;@loader_path/../../.." )
81+ elseif (DEFINED NGRAPH_RPATH)
82+ set_property (TARGET plaidml_backend PROPERTY INSTALL_RPATH "\$ ORIGIN;\$ ORIGIN/../../..;${NGRAPH_RPATH} " )
83+ else ()
84+ set_property (TARGET plaidml_backend PROPERTY INSTALL_RPATH "\$ ORIGIN;\$ ORIGIN/../../.." )
85+ endif ()
You can’t perform that action at this time.
0 commit comments