summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2022-11-22 14:46:23 (GMT)
committerKitware Robot <kwrobot@kitware.com>2022-11-22 14:46:35 (GMT)
commita449a840bdbb321433c3e5049323628816e8032f (patch)
tree1f9c1475cd9c3ad8096b70354522aa77c882c25f /Modules
parent40cb52bc9df7ff9e63ec81a8e646e30baa60c0b5 (diff)
parent2e2c1e3ea548878242ef10ed877dc81739acf352 (diff)
downloadCMake-a449a840bdbb321433c3e5049323628816e8032f.zip
CMake-a449a840bdbb321433c3e5049323628816e8032f.tar.gz
CMake-a449a840bdbb321433c3e5049323628816e8032f.tar.bz2
Merge topic 'opencl_framework'
2e2c1e3ea5 OpenCL: Do not assume that OpenCL framework is always used in Apple Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !7941
Diffstat (limited to 'Modules')
-rw-r--r--Modules/FindOpenCL.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenCL.cmake b/Modules/FindOpenCL.cmake
index 5c7aa22..2b700ff 100644
--- a/Modules/FindOpenCL.cmake
+++ b/Modules/FindOpenCL.cmake
@@ -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"