Merge pull request #1322 from davidgyu/dev_find_opencl_fix

Fixed cmake/FindOpenCL.cmake version parsing
This commit is contained in:
David G Yu 2023-09-13 18:36:55 -07:00 committed by GitHub
commit 653393f33b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -177,7 +177,7 @@ if(_OPENCL_CPP_INCLUDE_DIRS)
if(EXISTS "${OPENCL_INCLUDE_DIRS}/CL/cl.h") if(EXISTS "${OPENCL_INCLUDE_DIRS}/CL/cl.h")
file(STRINGS "${OPENCL_INCLUDE_DIRS}/CL/cl.h" LINES REGEX "^#define CL_VERSION_.*$") file(STRINGS "${OPENCL_INCLUDE_DIRS}/CL/cl.h" LINES REGEX "^#define CL_VERSION_[0-9]_[0-9]")
foreach(LINE ${LINES}) foreach(LINE ${LINES})