CMake:livoxGen1: advise on libOpenCL.so ubuntu pkg name
This commit is contained in:
@@ -27,7 +27,12 @@ if(ENABLE_STIMBUFFAPI_livoxGen1)
|
|||||||
# Fall back to pkg-config
|
# Fall back to pkg-config
|
||||||
pkg_check_modules(OPENCL OpenCL)
|
pkg_check_modules(OPENCL OpenCL)
|
||||||
if(NOT OPENCL_FOUND)
|
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()
|
endif()
|
||||||
message(STATUS "Found OpenCL using pkg-config")
|
message(STATUS "Found OpenCL using pkg-config")
|
||||||
endif()
|
endif()
|
||||||
|
|||||||
Reference in New Issue
Block a user