Try to unbreak some MSVC builds following forward slash change.
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 26 Apr 2015 01:28:02 +0000 (21:28 -0400)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 26 Apr 2015 01:28:02 +0000 (21:28 -0400)
Michael Paquier.

src/tools/msvc/VCBuildProject.pm

index 513cfb5796671dbd78536c5c852473ffb5b79ff5..dda662f3695bb107778724d595e3f2eb7aaa13cd 100644 (file)
@@ -71,7 +71,7 @@ EOF
    foreach my $fileNameWithPath (sort keys %{ $self->{files} })
    {
        confess "Bad format filename '$fileNameWithPath'\n"
-         unless ($fileNameWithPath =~ /^(.*)\\([^\\]+)\.(c|cpp|y|l|rc)$/);
+         unless ($fileNameWithPath =~ m!^(.*)/([^/]+)\.(c|cpp|y|l|rc)$!);
        my $dir  = $1;
        my $file = $2;