mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-02 11:00:36 -05:00
FindOpenCL: Add detection of OpenCL 2.1 and 2.2
This commit is contained in:
committed by
Brad King
parent
a91eb5e41f
commit
55f7930f0e
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user