We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c53953a + da50cd7 commit 3ecba31Copy full SHA for 3ecba31
source/adapters/opencl/CMakeLists.txt
@@ -67,16 +67,14 @@ if(UR_OPENCL_ICD_LOADER_LIBRARY)
67
set(OpenCLICDLoaderLibrary ${UR_OPENCL_ICD_LOADER_LIBRARY})
68
else()
69
find_package(OpenCL 3.0)
70
- if(OpenCL_FOUND)
71
- set(OpenCLICDLoaderLibrary OpenCL::OpenCL)
72
- else()
+ if(NOT OpenCL_FOUND)
73
FetchContent_Declare(OpenCL-ICD-Loader
74
GIT_REPOSITORY "https://github.com/KhronosGroup/OpenCL-ICD-Loader.git"
75
GIT_TAG main
76
)
77
FetchContent_MakeAvailable(OpenCL-ICD-Loader)
78
- set(OpenCLICDLoaderLibrary ${PROJECT_BINARY_DIR}/lib/libOpenCL.so)
79
endif()
+ set(OpenCLICDLoaderLibrary OpenCL::OpenCL)
80
81
82
message(STATUS "OpenCL Include Directory: ${OpenCLIncludeDirectory}")
0 commit comments