summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authorKyle Edwards <kyle.edwards@kitware.com>2019-04-30 14:30:26 (GMT)
committerKitware Robot <kwrobot@kitware.com>2019-04-30 14:30:35 (GMT)
commit40852eed8e304dffd7254d6790850e0a73766d9e (patch)
treed5fb730ef28ff0caac1ee8e5a0d50fcd587353e9 /Tests
parentd0e6fc28334023a42fbae797ece8c8e8526dc1c3 (diff)
parent8d93815d204b4827ff9f1280a73e55861c00f47c (diff)
downloadCMake-40852eed8e304dffd7254d6790850e0a73766d9e.zip
CMake-40852eed8e304dffd7254d6790850e0a73766d9e.tar.gz
CMake-40852eed8e304dffd7254d6790850e0a73766d9e.tar.bz2
Merge topic 'source_group-tree-files'
8d93815d20 source_group command ensures that FILES arguments are actually files Acked-by: Kitware Robot <kwrobot@kitware.com> Merge-request: !3265
Diffstat (limited to 'Tests')
-rw-r--r--Tests/SourceGroups/CMakeLists.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/Tests/SourceGroups/CMakeLists.txt b/Tests/SourceGroups/CMakeLists.txt
index 813774d..a5740bb 100644
--- a/Tests/SourceGroups/CMakeLists.txt
+++ b/Tests/SourceGroups/CMakeLists.txt
@@ -42,8 +42,16 @@ set(tree_files_with_prefix ${root}/tree_prefix_foo.c
set(tree_files_with_empty_prefix ${root}/tree_empty_prefix_foo.c
tree_empty_prefix_bar.c)
+set(tree_files_which_are_actually_directories ${root}
+ ${root}/
+ ${root}/sub1
+ ${root}/sub1/)
+
source_group(TREE ${root} FILES ${tree_files_without_prefix})
+# Should not crash and not add any files - just silently ignore the directories
+source_group(TREE ${root} FILES ${tree_files_which_are_actually_directories})
+
source_group(FILES ${tree_files_with_prefix} PREFIX tree_root/subgroup TREE ${root})
source_group(PREFIX "" FILES ${tree_files_with_empty_prefix} TREE ${root})