Skip to content

Add AUTOGEN_FOLDERS global property

mcottrell1 requested to merge mcottrell1/cmake:add_AUTOGEN_FOLDERS_prop into master

This adds a new global property that can be used in conjunction with USE_FOLDERS. Instead of having to manually set CMAKE_FOLDER or set FOLDER per target it will generate folder based on where the CMakeLists.txt that defined the target was in the project's directory tree. This helps with mirroring the actual source tree when using projects generated for Visual Studio or Xcode.

I'm not sure how to add tests for this, any guidance would be appreciated.

Edited by Brad King

Merge request reports