Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit 147b07c

Browse files
author
Rob Earhart
committed
Separate build and install rpath
1 parent 1d4635d commit 147b07c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -306,12 +306,12 @@ set(NGRAPH_INSTALL_DOC "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_DOCDIR}")
306306
set(NGRAPH_INSTALL_BIN "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_BINDIR}")
307307
if (LINUX)
308308
if (DEFINED NGRAPH_RPATH)
309+
set(CMAKE_BUILD_RPATH "$ORIGIN:${NGRAPH_RPATH}")
309310
set(CMAKE_INSTALL_RPATH "$ORIGIN:${NGRAPH_RPATH}")
310311
else()
312+
set(CMAKE_BUILD_RPATH "$ORIGIN")
311313
set(CMAKE_INSTALL_RPATH "$ORIGIN")
312314
endif()
313-
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
314-
set(CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
315315
endif()
316316

317317
#-----------------------------------------------------------------------------------------------

0 commit comments

Comments
 (0)