I am trying to change my project to building using C++14. It works on Windows and Mac by specifying the C++ standard. However, changing the C++ standard in the CMakeLists.txt doesn’t seem to do anything.
I tried changing “-std=c+=11” in the CMAKE_CXX_FLAGS. I also tried
set(CMAKE_CXX_STANDARD 14) set(CMAKE_STANDARD_REQIURED ON)
In all cases, I get the same error message: “class std::map<std::__cxx11::basic_string, GameObject*> ha no member named insert_or_assign”, which clearly suggests it is building with C++11 instead.
How do I fix this?