Commit 7018e4d4 authored by avijit-nervana's avatar avijit-nervana

Added rpath setting for PlaidML backend

parent 0a4b3e33
......@@ -13,6 +13,14 @@
# See the License for the specific language governing permissions and
# limitations under the License.
# ******************************************************************************
set(CMAKE_MACOSX_RPATH 1)
if(APPLE)
set(CMAKE_INSTALL_RPATH "@loader_path/;@loader_path/../../..")
elseif(DEFINED NGRAPH_RPATH)
set(CMAKE_INSTALL_RPATH "\$ORIGIN:\$ORIGIN/../../../:${NGRAPH_RPATH}")
else()
set(CMAKE_INSTALL_RPATH "\$ORIGIN:\$ORIGIN/../../../")
endif()
set(SRC
plaidml_backend.cpp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment