File tree 2 files changed +1
-9
lines changed
2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ set ( LLVM_INST_INC_DIRECTORY "lib${LLVM_LIBDIR_SUFFIX}/clang/${CLANG_VERSION}/i
32
32
find_package (OpenCL REQUIRED)
33
33
34
34
include_directories (${OpenCL_INCLUDE_DIRS} )
35
- link_libraries (OpenCL )
35
+ link_libraries (${OpenCL_LIBRARY} )
36
36
37
37
# Configure SYCL version macro
38
38
set (sycl_inc_dir ${CMAKE_CURRENT_SOURCE_DIR} /include /CL)
@@ -103,7 +103,6 @@ add_library("${SYCLLibrary}" SHARED
103
103
104
104
include_directories ("${SYCLLibrary} " "${includeRootPath} " )
105
105
106
- target_link_libraries ("${SYCLLibrary} " "${OpenCL_LIBRARIES} " )
107
106
set_target_properties ("${SYCLLibrary} " PROPERTIES LINKER_LANGUAGE CXX)
108
107
109
108
# Workaround for bug in GCC version 5.
Original file line number Diff line number Diff line change @@ -2,13 +2,6 @@ set(CMAKE_CXX_STANDARD 11)
2
2
set (CMAKE_CXX_STANDARD_REQUIRED ON )
3
3
set (CMAKE_CXX_EXTENSIONS OFF )
4
4
5
- find_package (OpenCL REQUIRED)
6
-
7
- # All projects need this include directory
8
- include_directories (${OpenCL_INCLUDE_DIRS} )
9
-
10
- link_libraries (OpenCL)
11
-
12
5
add_executable (get_device_count_by_type get_device_count_by_type.cpp)
13
6
14
7
#Minimum supported version of Intel's OCL GPU and CPU devices
You can’t perform that action at this time.
0 commit comments