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.
This commit is contained in:
Kornel Benko 2019-03-31 11:34:14 +02:00
parent 780fd81a67
commit 50779dda7a

View File

@ -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));