CMake optimizing out values in debug mode
I'm trying to view some simple int variables in GDB, but they're all being marked as "value optimized out". At the top of my CMakeLists.txt file, I have
set(ROS_BUILD_TYPE Debug)
Do I need to set something else?