summaryrefslogtreecommitdiffstats
path: root/Tests/SourceGroups/tree_prefix_bar.c
diff options
context:
space:
mode:
authorMateusz Janek <stryku2393@gmail.com>2017-05-15 20:01:10 (GMT)
committerBrad King <brad.king@kitware.com>2017-05-17 13:04:02 (GMT)
commit4716f2be83f140deec28fd7c6b945c6fd401a433 (patch)
tree70d978f1f7ce45dfc19270b902000c5ffb64939f /Tests/SourceGroups/tree_prefix_bar.c
parent8bd6af0d6386d1e0b26ff594b7d42621d67b5985 (diff)
downloadCMake-4716f2be83f140deec28fd7c6b945c6fd401a433.zip
CMake-4716f2be83f140deec28fd7c6b945c6fd401a433.tar.gz
CMake-4716f2be83f140deec28fd7c6b945c6fd401a433.tar.bz2
source_group: Restore TREE support for relative paths
The fix in commit v3.8.1~4^2 (source_group: Fix TREE with root that is not current source dir, 2017-04-20) accidentally broke support for specifying paths relative to the source directory. Fix it and add a test covering the case. While at it, fix a typo in a variable name. Fixes: #16876
Diffstat (limited to 'Tests/SourceGroups/tree_prefix_bar.c')
-rw-r--r--Tests/SourceGroups/tree_prefix_bar.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/Tests/SourceGroups/tree_prefix_bar.c b/Tests/SourceGroups/tree_prefix_bar.c
new file mode 100644
index 0000000..bd98476
--- /dev/null
+++ b/Tests/SourceGroups/tree_prefix_bar.c
@@ -0,0 +1,4 @@
+int tree_prefix_bar(void)
+{
+ return 66;
+}