File tree Expand file tree Collapse file tree 4 files changed +23
-5
lines changed
Expand file tree Collapse file tree 4 files changed +23
-5
lines changed Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ hunter_default_version(OpenAL VERSION 1.19.1)
108108hunter_default_version(OpenBLAS VERSION 0.3.21)
109109hunter_default_version(OpenCL VERSION 2022.01.04-p1)
110110hunter_default_version(OpenCL-Headers VERSION 2022.01.04)
111- hunter_default_version(OpenCL-cpp VERSION 2.0.10 -p0)
111+ hunter_default_version(OpenCL-cpp VERSION 2.0.16-61a5c9a -p0)
112112hunter_default_version(OpenCV VERSION 4.5.5-p0)
113113hunter_default_version(OpenCV-Extra VERSION 4.5.3)
114114hunter_default_version(OpenEXR VERSION 3.1.5-p0)
Original file line number Diff line number Diff line change @@ -8,6 +8,17 @@ include(hunter_download)
88include (hunter_pick_scheme)
99
1010# List of versions here...
11+ hunter_add_version(
12+ PACKAGE_NAME
13+ OpenCL-cpp
14+ VERSION
15+ "2.0.16-61a5c9a-p0"
16+ URL
17+ "https://github.com/cpp-pm/OpenCL-CLHPP/archive/refs/tags/v2.0.16-61a5c9a-p0.tar.gz"
18+ SHA1
19+ c1bf63fd603d8e581245b3e89fce47679f571c16
20+ )
21+
1122hunter_add_version(
1223 PACKAGE_NAME
1324 OpenCL-cpp
@@ -24,7 +35,7 @@ hunter_cmake_args(
2435 CMAKE_ARGS
2536 BUILD_DOCS=OFF
2637 BUILD_EXAMPLES=OFF
27- BUILD_TESTS =OFF
38+ BUILD_TESTING =OFF
2839)
2940
3041# Pick a download scheme
Original file line number Diff line number Diff line change @@ -7,7 +7,10 @@ include("../common.cmake")
77project (download_opencl_cpp)
88
99hunter_add_package(OpenCL-cpp)
10- find_package (OpenCL-cpp CONFIG REQUIRED)
10+ find_package (OpenCLHeadersCpp CONFIG REQUIRED)
11+
12+ hunter_add_package(OpenCL)
13+ find_package (OpenCL CONFIG REQUIRED)
1114
1215add_executable (opencl_cpp_test main.cpp)
13- target_link_libraries (opencl_cpp_test OpenCL-cpp:: OpenCL-cpp )
16+ target_link_libraries (opencl_cpp_test OpenCL::HeadersCpp OpenCL::OpenCL )
Original file line number Diff line number Diff line change 1+ #define CL_HPP_MINIMUM_OPENCL_VERSION 120
2+ #define CL_HPP_TARGET_OPENCL_VERSION 120
3+ #define CL_TARGET_OPENCL_VERSION 120
4+
15#if __APPLE__
26#include < OpenCL/cl.h>
37#else
48#include < CL/cl.h>
59#endif
610
7- #include < CL/cl .hpp>
11+ #include < CL/opencl .hpp>
812
913int main ()
1014{
You can’t perform that action at this time.
0 commit comments