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:
Jan Holesovsky 2011-01-04 15:47:57 +01:00
parent 93ff50904b
commit d7d7b15e94

View file

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