Skip to content

Commit 67b01eb

Browse files
committed
set LINK_OPTIONS for TiledArray_LIBRETT to be able to run executables linking against the SHARED version of it from the build tree
1 parent 50b61e5 commit 67b01eb

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

external/librett.cmake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ set_target_properties(TiledArray_LIBRETT
177177
"$<BUILD_INTERFACE:${EXTERNAL_SOURCE_DIR}/src>;$<INSTALL_INTERFACE:${_LIBRETT_INSTALL_DIR}/include>"
178178
INTERFACE_LINK_LIBRARIES
179179
"$<BUILD_INTERFACE:${LIBRETT_BUILD_BYPRODUCTS}>;$<INSTALL_INTERFACE:${_LIBRETT_INSTALL_DIR}/lib/librett.${LIBRETT_DEFAULT_LIBRARY_SUFFIX}>"
180+
INTERFACE_LINK_OPTIONS
181+
"LINKER:-rpath,${EXTERNAL_BUILD_DIR}/src"
180182
)
181183
if (TA_CUDA)
182184
set_target_properties(TiledArray_LIBRETT

0 commit comments

Comments
 (0)