Skip to content

Commit

Permalink
Set BUILD RPATH too
Browse files Browse the repository at this point in the history
Thanks to @Rbiessy for catching that!
  • Loading branch information
al42and committed Sep 9, 2024
1 parent 462986d commit f62a109
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,9 @@ if(BUILD_SHARED_LIBS)
list(TRANSFORM ONEMKL_LIBS PREPEND onemkl_)
target_link_libraries(onemkl PUBLIC ${ONEMKL_LIBS})
set_target_properties(onemkl PROPERTIES
INSTALL_RPATH "\$ORIGIN")
INSTALL_RPATH "\$ORIGIN"
BUILD_WITH_INSTALL_RPATH TRUE
)

# Add the library to install package
foreach(domain_lib ${ONEMKL_LIBS})
Expand Down

0 comments on commit f62a109

Please sign in to comment.