Modifying cmake will set the C + + standard
set(CMAKE_CXX_FLAGS "-std=c++11")
Replace with
set(CMAKE_CXX_STANDARD 11)
It can be solved
In the new version of cmake, the following method is used to set C + + standard
Modifying cmake will set the C + + standard
set(CMAKE_CXX_FLAGS "-std=c++11")
Replace with
set(CMAKE_CXX_STANDARD 11)
It can be solved
In the new version of cmake, the following method is used to set C + + standard