We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1cc6bc1 commit cafa652Copy full SHA for cafa652
src/core/qgsopenclutils.h
@@ -19,9 +19,18 @@
19
#define SIP_NO_FILE
20
21
#define CL_HPP_ENABLE_EXCEPTIONS
22
+
23
+#include <QtGlobal>
24
+#ifdef Q_OS_MAC
25
+#define CL_HPP_MINIMUM_OPENCL_VERSION 120
26
+#define CL_HPP_TARGET_OPENCL_VERSION 120
27
+#define CL_TARGET_OPENCL_VERSION 120
28
+#else
29
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
30
#define CL_HPP_TARGET_OPENCL_VERSION 220
31
#define CL_TARGET_OPENCL_VERSION 200
32
+#endif
33
34
#include <CL/cl2.hpp>
35
36
#include "qgis_core.h"
0 commit comments