Skip to content
Permalink
Browse files

fix build on MacOS

  • Loading branch information
PeterPetrik committed Dec 3, 2018
1 parent 1cc6bc1 commit cafa652c0299f2bd6559ee769afe03ad8336f19e
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/core/qgsopenclutils.h
@@ -19,9 +19,18 @@
#define SIP_NO_FILE

#define CL_HPP_ENABLE_EXCEPTIONS

#include <QtGlobal>
#ifdef Q_OS_MAC
#define CL_HPP_MINIMUM_OPENCL_VERSION 120
#define CL_HPP_TARGET_OPENCL_VERSION 120
#define CL_TARGET_OPENCL_VERSION 120
#else
#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
#define CL_HPP_TARGET_OPENCL_VERSION 220
#define CL_TARGET_OPENCL_VERSION 200
#endif

#include <CL/cl2.hpp>

#include "qgis_core.h"

0 comments on commit cafa652

Please sign in to comment.
You can’t perform that action at this time.