From f62a1090eb1eae621679077aada1dc93fdd8a05a Mon Sep 17 00:00:00 2001 From: Andrey Alekseenko Date: Mon, 9 Sep 2024 12:45:31 +0200 Subject: [PATCH] Set BUILD RPATH too Thanks to @Rbiessy for catching that! --- src/CMakeLists.txt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 0ab646aca..0beadc3ec 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -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})