When I compile my ROS code, I'm getting a ton of warnings like:
warning: extended initializer lists only available with -std=c++11 or -std=gnu++11
According to this [SO question](http://stackoverflow.com/questions/24469529/warning-non-static-data-member-initializers-only-available-with-std-c11-or) I need to add `-std=c++0x` to my compiler's flags.
I see in my auto-generated CMakeLists.txt, there's already the commented-out option:
#set(CMAKE_C_FLAGS "-std=gnu99 ${CMAKE_C_FLAGS}")
so I changed that to:
set(CMAKE_C_FLAGS "-std=c++0x ${CMAKE_C_FLAGS}")
However, when I re-run `catkin_make --pkg mypackage` I still see these warnings. I tried the other flags suggested in the SO question, but the output is the same. Why is CMake ignoring CMAKE_C_FLAGS?
↧