diff options
author | Henry Schreiner <henryschreineriii@gmail.com> | 2017-10-20 20:41:56 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-10-23 15:39:53 (GMT) |
commit | 55f7930f0e829777c401d3863152350f9e8fafa8 (patch) | |
tree | 1ad52dbef0f3cecff56c027564ec472cc0b46fa3 /Modules | |
parent | a91eb5e41f486628910f189bf40403568af013c7 (diff) | |
download | CMake-55f7930f0e829777c401d3863152350f9e8fafa8.zip CMake-55f7930f0e829777c401d3863152350f9e8fafa8.tar.gz CMake-55f7930f0e829777c401d3863152350f9e8fafa8.tar.bz2 |
FindOpenCL: Add detection of OpenCL 2.1 and 2.2
Diffstat (limited to 'Modules')
-rw-r--r-- | Modules/FindOpenCL.cmake | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Modules/FindOpenCL.cmake b/Modules/FindOpenCL.cmake index b8a7d82..0db2dd2 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) |