Personally, I always use RelWithDebInfo
, but I do so with an alias, something like:
% alias ab
ab='src/ament/ament_tools/scripts/ament.py build \
--build-tests \
--symlink-install \
--isolated \
--cmake-args -DCMAKE_BUILD_TYPE=RelWithDebInfo --'
As for changing the default, I suppose we could change it in the tool, but I’m hesitant to do so because it only makes sense for CMake building C/C++ code (whereas the tool also builds other things like Python packages, i.e. the cmake build type cannot be generalized to all build system types), and it is a departure from typical CMake development (where the default is None) and catkin development (also where the default is None).