summaryrefslogtreecommitdiffstats
path: root/Modules/FindOpenCL.cmake
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-10-24 12:48:19 (GMT)
committerKitware Robot <kwrobot@kitware.com>2017-10-24 12:48:28 (GMT)
commit047af6e94e182601f4ff46467e5e682b1418560e (patch)
tree77278a70d9381cd071cd944039e293624f4309fd /Modules/FindOpenCL.cmake
parent4edcf4f169808a734a4ed869adc5b92825d69be8 (diff)
parent55f7930f0e829777c401d3863152350f9e8fafa8 (diff)
downloadCMake-047af6e94e182601f4ff46467e5e682b1418560e.zip
CMake-047af6e94e182601f4ff46467e5e682b1418560e.tar.gz
CMake-047af6e94e182601f4ff46467e5e682b1418560e.tar.bz2
Merge topic 'FindOpenCL-more-versions'
55f7930f FindOpenCL: Add detection of OpenCL 2.1 and 2.2 Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !1398
Diffstat (limited to 'Modules/FindOpenCL.cmake')
-rw-r--r--Modules/FindOpenCL.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenCL.cmake b/Modules/FindOpenCL.cmake
index ba87086..5d79110 100644
--- a/Modules/FindOpenCL.cmake
+++ b/Modules/FindOpenCL.cmake
@@ -37,7 +37,7 @@ function(_FIND_OPENCL_VERSION)
set(CMAKE_REQUIRED_QUIET ${OpenCL_FIND_QUIETLY})
CMAKE_PUSH_CHECK_STATE()
- foreach(VERSION "2_0" "1_2" "1_1" "1_0")
+ foreach(VERSION "2_2" "2_1" "2_0" "1_2" "1_1" "1_0")
set(CMAKE_REQUIRED_INCLUDES "${OpenCL_INCLUDE_DIR}")
if(APPLE)