]> git.lyx.org Git - features.git/commitdiff
Cmake export tests: Use absolute paths for subfiles inside the source dir
authorKornel Benko <kornel@lyx.org>
Sun, 31 Mar 2019 09:34:14 +0000 (11:34 +0200)
committerKornel Benko <kornel@lyx.org>
Sun, 31 Mar 2019 09:34:14 +0000 (11:34 +0200)
The testfile is inside the build dir, so no relative path to the source dir
should be alloved.

development/autotests/useSystemFonts.pl

index 12c98507653f6f0f9efec85a11893370f05e69ce..8beb94cc0f18715fec02b5be0b440e158ed20c58 100644 (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));