how to get gcc or g++ command when using "colcon build" in ros2?
in ros2 ardent version, I can get compile command by "set(CMAKE_VEBOSE_MAKEFILE TRUE)" in CmakeLists.txt, but I can't find these message in ros2 bouncy, anyone can help me ?
You mean when you start the build? You can do something like:
--cmake-args -CMAKE_VEBOSE_MAKEFILE=TRUE
when launching colcon command line.I think this is actually supposed to be "--cmake-args -DCMAKE_VEBOSE_MAKEFILE=TRUE"