Skip to content

Commit 96ffff0

Browse files
Support DPCTL_WITH_REDIST for DPCTLSyclInterface target
1 parent 3359bd6 commit 96ffff0

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

libsyclinterface/CMakeLists.txt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,11 @@ target_include_directories(DPCTLSyclInterfaceHeaders INTERFACE
314314
${CMAKE_CURRENT_SOURCE_DIR}/include
315315
)
316316

317+
if (DPCTL_WITH_REDIST)
318+
cmake_path(RELATIVE_PATH CMAKE_SOURCE_DIR BASE_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} OUTPUT_VARIABLE _relative_path)
319+
set_target_properties(DPCTLSyclInterface PROPERTIES INSTALL_RPATH "$ORIGIN/${_relative_path}/../../")
320+
endif()
321+
317322
install(TARGETS
318323
DPCTLSyclInterface
319324
LIBRARY

0 commit comments

Comments
 (0)