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

Commit 1185fb4

Browse files
author
Rob Earhart
committed
Explicitly set target properties
1 parent 147b07c commit 1185fb4

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/ngraph/runtime/plaidml/CMakeLists.txt

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,6 @@
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

2517
set(SRC
2618
plaidml_backend.cpp
@@ -83,3 +75,11 @@ target_include_directories(plaidml_backend SYSTEM PUBLIC ${PLAIDML_INCLUDE_DIRS}
8375
target_link_libraries(plaidml_backend PUBLIC ngraph libplaidml)
8476
install(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()

0 commit comments

Comments
 (0)