File tree Expand file tree Collapse file tree 5 files changed +5
-8
lines changed Expand file tree Collapse file tree 5 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -33,19 +33,21 @@ endfunction()
3333function (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}
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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)
2422set_target_properties (pi_hip PROPERTIES LINKER_LANGUAGE CXX)
2523
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments