Skip to content

Commit

Permalink
Merge pull request #1241 from kbenzie/benie/cl-fix-windows-build
Browse files Browse the repository at this point in the history
[CL] Fix Windows CMake, remove explicit Linux path
  • Loading branch information
wlemkows authored Jan 10, 2024
2 parents c53953a + da50cd7 commit 3ecba31
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions source/adapters/opencl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,16 +67,14 @@ if(UR_OPENCL_ICD_LOADER_LIBRARY)
set(OpenCLICDLoaderLibrary ${UR_OPENCL_ICD_LOADER_LIBRARY})
else()
find_package(OpenCL 3.0)
if(OpenCL_FOUND)
set(OpenCLICDLoaderLibrary OpenCL::OpenCL)
else()
if(NOT OpenCL_FOUND)
FetchContent_Declare(OpenCL-ICD-Loader
GIT_REPOSITORY "https://github.com/KhronosGroup/OpenCL-ICD-Loader.git"
GIT_TAG main
)
FetchContent_MakeAvailable(OpenCL-ICD-Loader)
set(OpenCLICDLoaderLibrary ${PROJECT_BINARY_DIR}/lib/libOpenCL.so)
endif()
set(OpenCLICDLoaderLibrary OpenCL::OpenCL)
endif()

message(STATUS "OpenCL Include Directory: ${OpenCLIncludeDirectory}")
Expand Down

0 comments on commit 3ecba31

Please sign in to comment.