Skip to content

Commit 25a773a

Browse files
committed
[CMake] Set rpath of libsycl.so
libsycl.so depends on libur_loader.so, however it doesn't have an rpath set to find it. This fixes that.
1 parent 003fa58 commit 25a773a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sycl/source/CMakeLists.txt

+3-1
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,9 @@ function(add_sycl_rt_library LIB_NAME LIB_OBJ_NAME)
214214

215215
set_target_properties(${LIB_NAME} PROPERTIES
216216
VERSION ${SYCL_VERSION_STRING}
217-
SOVERSION ${SYCL_MAJOR_VERSION})
217+
SOVERSION ${SYCL_MAJOR_VERSION}
218+
# Required to find libur_loader.so
219+
INSTALL_RPATH "\$ORIGIN")
218220

219221
check_cxx_compiler_flag(-Winstantiation-after-specialization
220222
HAS_INST_AFTER_SPEC)

0 commit comments

Comments
 (0)