CPack/RPM: no way to have source files excluded from debuginfo package
The current CPack RPM generator requires that source files be included in generated debuginfo packages. Having a CPACK_RPM_DEBUGINFO_EXCLUDE_SOURCES variable would be useful to skip detection and inclusion of source files all together.
In theory there is the CPACK_RPM_DEBUGINFO_EXCLUDE_DIRS variable, but that implementation is effectively useless due to only excluding the named directory itself, not any recursive contents.