Apparently the default for CMake is to compile without -g, unlike what Autoconf-generated configure does. This is changed by passing ‘-DCMAKE_BUILD_TYPE=RelWithDebInfo’ as a cmake flags.
Should we make it the default? Currently adding a “debug” output to a CMake package creates a .debug file without any debugging symbols, contrary to what happens with other packages. Ludo’.