Files
CMake/Source/cmSourceGroupCommand.cxx
Alex Neundorf d85238a2f2 source_group: Fix TREE without FILES
According to the documentation of `source_group()` the `FILES`
parameter is optional, but that was actually not the case.
When using `source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR})`
cmake did not previously create the source tree, but recognized
it as the old syntax.  With this patch, cmake recognizes it as
`TREE` syntax if the first argument is TREE followed by a directory.
Then, if no files are given, it defaults to all files in the
directory. PREFIX works too.

Fixes: #24590
2023-07-05 07:54:50 -04:00

9.5 KiB