commit 50779dda7ace5a7c0cb5f22dc2b79a276ad51413
Author: Kornel Benko <[email protected]>
Date: Sun Mar 31 11:34:14 2019 +0200
Cmake export tests: Use absolute paths for subfiles inside the source dir
The testfile is inside the build dir, so no relative path to the source dir
should be alloved.
---
development/autotests/useSystemFonts.pl | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/development/autotests/useSystemFonts.pl
b/development/autotests/useSystemFonts.pl
index 12c9850..8beb94c 100644
--- a/development/autotests/useSystemFonts.pl
+++ b/development/autotests/useSystemFonts.pl
@@ -258,8 +258,10 @@ sub interpretedCopy($$$$)
}
}
}
- if ($foundrelative) {
+ if ($foundrelative && $rStatus->{"filetype"} ne "prefix_for_list") {
# The result can be relative too
+ # but, since prefix_for_list does no copy, we have to use absolute
paths
+ # to address files inside the source dir
my @rel_list = ();
for my $fr (@{$filelist}) {
push(@rel_list, File::Spec->abs2rel($fr, $destdir));