mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-22 19:50:08 +00:00
Merge pull request #1322 from davidgyu/dev_find_opencl_fix
Fixed cmake/FindOpenCL.cmake version parsing
This commit is contained in:
commit
653393f33b
@ -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})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user