OpenCV_4.2.0/opencv-4.2.0/cmake/checks/cxx11.cpp

14 lines
209 B
C++
Raw Normal View History

2024-07-25 16:47:56 +08:00
#if __cplusplus >= 201103L || (defined(_MSC_VER) && _MSC_VER >= 1600)
// OK
#else
#error "C++11 is not supported"
#endif
static int test() { return 0; }
int main()
{
auto res = test();
return res;
}