diff options
author | Craig Scott <craig.scott@crascit.com> | 2020-05-10 08:04:17 (GMT) |
---|---|---|
committer | Craig Scott <craig.scott@crascit.com> | 2020-05-10 22:15:25 (GMT) |
commit | faf44a8cdb122065b2d36ac415561df679a94872 (patch) | |
tree | c6a424305948fb9c2c0b887e69395a278087da9b /Help/command | |
parent | 8afac758e6e793a0f004ce2693b0096362391cd9 (diff) | |
download | CMake-faf44a8cdb122065b2d36ac415561df679a94872.zip CMake-faf44a8cdb122065b2d36ac415561df679a94872.tar.gz CMake-faf44a8cdb122065b2d36ac415561df679a94872.tar.bz2 |
source_group: Support forward slashes in group hierarchy
Fixes: #18076
Diffstat (limited to 'Help/command')
-rw-r--r-- | Help/command/source_group.rst | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Help/command/source_group.rst b/Help/command/source_group.rst index 6623c98..5ae9e51 100644 --- a/Help/command/source_group.rst +++ b/Help/command/source_group.rst @@ -37,11 +37,13 @@ explicitly lists the file with ``FILES`` will be favored, if any. If no group explicitly lists the file, the *last* group whose regular expression matches the file will be favored. -The ``<name>`` of the group and ``<prefix>`` argument may contain backslashes -to specify subgroups: +The ``<name>`` of the group and ``<prefix>`` argument may contain forward +slashes or backslashes to specify subgroups. Backslashes need to be escaped +appropriately: .. code-block:: cmake + source_group(base/subdir ...) source_group(outer\\inner ...) source_group(TREE <root> PREFIX sources\\inc ...) |