Skip to content

Commit 5178117

Browse files
author
Alexander Batashev
committed
more comments
1 parent 7eda431 commit 5178117

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

sycl/cmake/modules/AddSYCL.cmake

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,21 @@ endfunction()
3333
function(add_sycl_plugin PLUGIN_NAME)
3434
cmake_parse_arguments("ARG"
3535
""
36-
"LINKER_SCRIPT"
36+
""
3737
"SOURCES;INCLUDE_DIRS;LIBRARIES"
3838
${ARGN}
3939
)
4040

4141
add_sycl_library("pi_${PLUGIN_NAME}" SHARED
4242
TOOLCHAIN
43-
LINKER_SCRIPT "${sycl_src_dir}/ld-version-script.txt"
43+
LINKER_SCRIPT "${PROJECT_SOURCE_DIR}/source/ld-version-script.txt"
4444
SOURCES ${ARG_SOURCES}
4545
INCLUDE_DIRS
4646
${ARG_INCLUDE_DIRS}
4747
${sycl_inc_dir}
48-
LIBRARIES ${ARG_LIBRARIES}
48+
LIBRARIES
49+
${ARG_LIBRARIES}
50+
OpenCL-Headers
4951
)
5052

5153
install(TARGETS pi_${PLUGIN_NAME}

sycl/plugins/cuda/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ add_sycl_plugin(cuda
3030
"pi_cuda.hpp"
3131
"pi_cuda.cpp"
3232
LIBRARIES
33-
OpenCL-Headers
3433
cudadrv
3534
)
3635

sycl/plugins/esimd_emulator/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ add_sycl_plugin(esimd_emulator
109109
"pi_esimd_emulator.cpp"
110110
LIBRARIES
111111
"${LEVEL_ZERO_LOADER}"
112-
OpenCL-Headers
113112
${LIBCM}
114113
${LIBIGFXCMRT_EMU}
115114
#TODO remove cyclic dependency

sycl/plugins/hip/CMakeLists.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ add_sycl_plugin(hip
1818
"pi_hip.cpp"
1919
INCLUDE_DIRS
2020
${sycl_plugin_dir}
21-
LIBRARIES
22-
OpenCL-Headers
2321
)
2422
set_target_properties(pi_hip PROPERTIES LINKER_LANGUAGE CXX)
2523

sycl/plugins/level_zero/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,6 @@ add_sycl_plugin(level_zero
109109
"${CMAKE_CURRENT_SOURCE_DIR}/usm_allocator.hpp"
110110
LIBRARIES
111111
"${LEVEL_ZERO_LOADER}"
112-
OpenCL-Headers
113112
Threads::Threads
114113
)
115114

0 commit comments

Comments
 (0)