出现了C++11 support的问题导致编译无法通过
用不着重新编译整个opencv库
可在顶层CMakeLists.txt添加以下2局解决
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
整个CMakeLists.txt示例:
cmake_minimum_required(VERSION 3.0.0)
project(auto_focus VERSION 0.1.0)
# 添加以下2句解决因C++11 support引起的编译报错
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED TRUE)
# 添加子目录
add_subdirectory(src)