projects
/
profile
/
ivi
/
opencv.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge pull request #1590 from ilya-lavrenov:cmd_parser_fix
[profile/ivi/opencv.git]
/
cmake
/
checks
/
opencl.cpp
1
#if defined __APPLE__
2
#include <OpenCL/cl.h>
3
#else
4
#include <CL/cl.h>
5
#endif
6
7
#ifndef _MSC_VER
8
#ifdef CL_VERSION_1_2
9
#error OpenCL is valid
10
#else
11
#error OpenCL check failed
12
#endif
13
#else
14
#ifdef CL_VERSION_1_2
15
#pragma message ("OpenCL is valid")
16
#else
17
#pragma message ("OpenCL check failed")
18
#endif
19
#endif
20
21
int main(int /*argc*/, char** /*argv*/)
22
{
23
return 0;
24
}