BUG: Reverting previous change until it is further tested.
This commit is contained in:
parent
7a31bc8521
commit
ff9c167e64
|
@ -2617,11 +2617,7 @@ int cmMakefile::ConfigureFile(const char* infile, const char* outfile,
|
||||||
{
|
{
|
||||||
std::string tempOutputFile = soutfile;
|
std::string tempOutputFile = soutfile;
|
||||||
tempOutputFile += ".tmp";
|
tempOutputFile += ".tmp";
|
||||||
std::ofstream fout(tempOutputFile.c_str()
|
std::ofstream fout(tempOutputFile.c_str());
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
||||||
, std::ios::out | std::ios::binary
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
if(!fout)
|
if(!fout)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error(
|
cmSystemTools::Error(
|
||||||
|
@ -2630,11 +2626,7 @@ int cmMakefile::ConfigureFile(const char* infile, const char* outfile,
|
||||||
cmSystemTools::ReportLastSystemError("");
|
cmSystemTools::ReportLastSystemError("");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
std::ifstream fin(sinfile.c_str()
|
std::ifstream fin(sinfile.c_str());
|
||||||
#if defined(_WIN32) || defined(__CYGWIN__)
|
|
||||||
, std::ios::in | std::ios::binary
|
|
||||||
#endif
|
|
||||||
);
|
|
||||||
if(!fin)
|
if(!fin)
|
||||||
{
|
{
|
||||||
cmSystemTools::Error("Could not open file for read in copy operation ",
|
cmSystemTools::Error("Could not open file for read in copy operation ",
|
||||||
|
|
Loading…
Reference in New Issue