WIP: prefix IDE folders with project name
This is more a "Request for Comment" instead of a merge request ...
At our company we experiment with "Super Builds" where multiple independent repositories with their own projects are added and built within the same CMake "Unit". In IDEs like Visual Studio or Xcode the FOLDER property already helps to structure the targets. However we found that grouping them by project is pretty helpful.
This patch adds a PREFIX_FOLDERS
global property that, when enabled, prefixes the FOLDER with the project name where the target was created in.
I have some questions:
- Is the functionality useful enough that you want to provide it?
- Is there a better way than populating and querying the
PROJECT
property to retrieve the project where a target was created in? - Is the
cmGeneratorTarget
class the proper place to host ``GetEffectiveFolderName()`?
Thanks, Gregor