mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-01 04:03:24 +03:00
OpenCL: Do not assume that OpenCL framework is always used in Apple
This commit is contained in:
1 parent
55c7a1f1ad
commit
2e2c1e3ea5
1 file changed
+1
-1
@@ -48,7 +48,7 @@ function(_FIND_OPENCL_VERSION)
|
||||
foreach(VERSION "3_0" "2_2" "2_1" "2_0" "1_2" "1_1" "1_0")
|
||||
set(CMAKE_REQUIRED_INCLUDES "${OpenCL_INCLUDE_DIR}")
|
||||
|
||||
if(APPLE)
|
||||
if(EXISTS ${OpenCL_INCLUDE_DIR}/Headers/cl.h)
|
||||
CHECK_SYMBOL_EXISTS(
|
||||
CL_VERSION_${VERSION}
|
||||
"${OpenCL_INCLUDE_DIR}/Headers/cl.h"
|
||||
|
||||
Reference in new issue
Block a user