mirror of
https://github.com/PixarAnimationStudios/OpenSubdiv
synced 2024-11-08 13:30:04 +00:00
Fixed cmake/FindOpenCL.cmake version parsing
Current versions of the OpenCL headers define several version macros and we want to make sure to parse just the main version macro. This is a simple near-term fix, since we'd like to move to the standard CMake FindOpenCL module and delete this custom module.
This commit is contained in:
parent
18f3b91c28
commit
92442439f5
@ -177,7 +177,7 @@ if(_OPENCL_CPP_INCLUDE_DIRS)
|
||||
|
||||
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})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user