File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ set_target_properties(pi_opencl PROPERTIES LINKER_LANGUAGE CXX)
27
27
#preprocessor definitions for compiling a target's sources. We do not need it for pi_opencl
28
28
target_include_directories (pi_opencl PRIVATE "${sycl_inc_dir} " )
29
29
30
+ #link pi_opencl with OpenCL headers and ICD Loader.
30
31
target_link_libraries ( pi_opencl
31
32
PRIVATE OpenCL::Headers
32
33
PRIVATE ${OpenCL_LIBRARIES}
@@ -44,10 +45,9 @@ else()
44
45
# All other symbols are regarded as local (hidden)
45
46
set (linker_script "${CMAKE_CURRENT_SOURCE_DIR} /../ld-version-script.txt" )
46
47
47
- #link pi_opencl with OpenCL headers and ICD Loader.
48
+ # Filter symbols based on the scope defined in the script file,
49
+ # and export pi* function symbols in the library.
48
50
target_link_libraries ( pi_opencl
49
- # Filter symbols based on the scope defined in the script file,
50
- # and export pi* function symbols in the library.
51
51
PRIVATE "-Wl,--version-script=${linker_script} "
52
52
)
53
53
endif ()
You can’t perform that action at this time.
0 commit comments