Since this was for all modules and the main, it could be done in the
https://github.com/kamailio/kamailio/blob/master/cmake/defs.cmake
specifically in: https://github.com/kamailio/kamailio/blob/ccadde0a6656cd78fc1b4f67ed40b5a6ac... All modules are then linked with this INTERFACE target.
or because it has some specific folder names in the option it may be easier in the modules CMakeLists.txt. Just add this
`target_compile_definitions(${MODULE_NAME} PRIVATE|PUBLIC "-ffile-prefix-map=${CMAKE_SOURCE_DIR}/src/modules/${MODULE_NAME}/= " )
https://github.com/kamailio/kamailio/blob/ccadde0a6656cd78fc1b4f67ed40b5a6ac...