Commit e68471ec authored by Peter Eastman's avatar Peter Eastman
Browse files

Use the preinstalled cl.hpp if it's available

parent f6ae2e9f
...@@ -36,7 +36,22 @@ ...@@ -36,7 +36,22 @@
// Prevent Windows from defining macros that interfere with other code. // Prevent Windows from defining macros that interfere with other code.
#define NOMINMAX #define NOMINMAX
#endif #endif
#include <cl.hpp> #if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/opencl.h>
#else
#include <CL/opencl.h>
#endif
#ifdef CL_VERSION_1_1
// OpenCL C++ bindings are included with OpenCL 1.1
#if defined(__APPLE__) || defined(__MACOSX)
#include <OpenCL/cl.hpp>
#else
#include <CL/cl.hpp>
#endif
#else
// OpenCL C++ bindings are not included with OpenCL 1.0 so use a local copy.
#include <cl.hpp>
#endif
#include "openmm/internal/windowsExport.h" #include "openmm/internal/windowsExport.h"
#include "OpenCLPlatform.h" #include "OpenCLPlatform.h"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment