cmake出错显示编译器不支持c++11,怎么办?

Build type: Release
CMake Error at CMakeLists.txt:32 (message):
The compiler C:/Program Files (x86)/Microsoft Visual Studio 14.0/VC/bin/cl.exe has no C++11 support. Please use a different C++
compiler.

VS对C++11标准的支持并不好。
如果是联网环境,可以考虑升级VS。

装个新版本vs试试
或者把代码里的c++11改掉,先在CMakeList.txt去掉c++11的编译选项