Cmake Setting Support C++11 This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options

#error This file requires compiler and library support for the ISO C++ 2011 standard. This support must be enabled with the -std=c++11 or -std=gnu++11 compiler options.

add_definitions(-std=c++11)

perhaps

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")

perhaps

set(CMAKE_CXX_STANDARD 11)

Read More: