CMake:livoxGen1: advise on libOpenCL.so ubuntu pkg name

This commit is contained in:
2025-11-06 09:09:51 -04:00
parent f7aba4af4e
commit 59a584561d
+6 -1
View File
@@ -27,7 +27,12 @@ if(ENABLE_STIMBUFFAPI_livoxGen1)
# Fall back to pkg-config
pkg_check_modules(OPENCL OpenCL)
if(NOT OPENCL_FOUND)
message(FATAL_ERROR "Failed to find OpenCL: both find_package and pkg_check_modules failed")
message(FATAL_ERROR
"Failed to find OpenCL: both find_package and "
"pkg_check_modules failed. Try installing the "
"'ocl-icd-opencl-dev' package (or the appropriate "
"OpenCL development package for your system)."
)
endif()
message(STATUS "Found OpenCL using pkg-config")
endif()