CMakeLists: Changed FATAL_ERROR to Warning in case of OpenCLHeaders not found (#17260)

This commit is contained in:
Artyom Anokhov 2023-04-27 14:22:53 +02:00 committed by GitHub
parent 40bf400b18
commit e06c4cc6fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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()