CMakeLists: Changed FATAL_ERROR to Warning in case of OpenCLHeaders not found (#17260)
This commit is contained in:
2
thirdparty/CMakeLists.txt
vendored
2
thirdparty/CMakeLists.txt
vendored
@@ -43,7 +43,7 @@ if(ENABLE_INTEL_GPU)
|
||||
# 'brew install opencl-headers'
|
||||
find_package(OpenCLHeaders QUIET)
|
||||
if(NOT OpenCLHeaders_FOUND)
|
||||
message(FATAL_ERROR "OpenCLHeaders not found, but OpenCLICDLoader is installed. Please, install OpenCL headers")
|
||||
message(WARNING "OpenCLHeaders not found, but OpenCLICDLoader is installed. Please, install OpenCL headers")
|
||||
else()
|
||||
set_target_properties(OpenCL::Headers PROPERTIES IMPORTED_GLOBAL ON)
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user