Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix build on MacOS
  • Loading branch information
PeterPetrik committed Dec 3, 2018
1 parent 1cc6bc1 commit cafa652
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/core/qgsopenclutils.h
Expand Up @@ -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"
Expand Down

0 comments on commit cafa652

Please sign in to comment.