Square brackets in project/package filenames causes silent CPack packaging failure
This is in relation to the CPack code here: https://github.com/Kitware/CMake/blob/9446ec7a2bf18af0203bc28455fc88e7113d3df9/Source/CPack/cmCPackGenerator.cxx#L1030
The code will gather a list of files to package before running the various packing backends. The issue is that if the project name or package name include square brackets [ ] it will silently fail to package any files since no files will match the regex expression which is filtering files.
This came up due to my automation tool called ProjectGenerator generating auto target definitions which had the source inspiration of the target encoded in the name with a [exc] for executables and [tag] for tag based groups etc. See here: https://github.com/LiberatorUSA/GUCEF/tree/master/projects/CMake/targets
I had to debug the CPack code to figure this out and was stomped on it for a while as I believed it be an issue with my CPack configuration. To avoid having others also lose a lot of time on this issue without any clues please fix it.