Set TMP on Windows if not set.
Otherwise we have problems with paths containing spaces - they don't get quoted in some cases.
This commit is contained in:
parent
93ff50904b
commit
d7d7b15e94
1 changed files with 5 additions and 0 deletions
|
@ -1781,6 +1781,11 @@ if ( $platform =~ m/cygwin/ )
|
||||||
my $tmpdir = qx{cygpath -m "/tmp"};
|
my $tmpdir = qx{cygpath -m "/tmp"};
|
||||||
chomp($tmpdir);
|
chomp($tmpdir);
|
||||||
ToFile( "TMPDIR", $tmpdir, "e" );
|
ToFile( "TMPDIR", $tmpdir, "e" );
|
||||||
|
if ( !defined $ENV{"TMP"} || $ENV{"TMP"} eq "" ) {
|
||||||
|
ToFile( "TMP", $tmpdir, "e" );
|
||||||
|
} else {
|
||||||
|
ToFile( "TMP", "$ENV{'TMP'}", "e" );
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if ("@WITH_VC_REDIST@" eq "TRUE") {
|
if ("@WITH_VC_REDIST@" eq "TRUE") {
|
||||||
ToFile( "WITH_VC_REDIST", "TRUE", "e" );
|
ToFile( "WITH_VC_REDIST", "TRUE", "e" );
|
||||||
|
|
Loading…
Reference in a new issue