summaryrefslogtreecommitdiffstats
path: root/Source/cmExportLibraryDependencies.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2004-11-03 12:23:18 (GMT)
committerBrad King <brad.king@kitware.com>2004-11-03 12:23:18 (GMT)
commitd46d8df0edfcfac46390319db8213601a5cd4260 (patch)
tree86f2c559e3983463981ea30e59fa25193207dfb2 /Source/cmExportLibraryDependencies.cxx
parent3050e231b35c7b8b3e1dfcc37275dddb3b5d7445 (diff)
downloadCMake-d46d8df0edfcfac46390319db8213601a5cd4260.zip
CMake-d46d8df0edfcfac46390319db8213601a5cd4260.tar.gz
CMake-d46d8df0edfcfac46390319db8213601a5cd4260.tar.bz2
ENH: Re-implemented cmGeneratedFileStream to look like a real stream and replace the destination file atomically. This will avoid problems with the process being terminated while generating a file.
Diffstat (limited to 'Source/cmExportLibraryDependencies.cxx')
-rw-r--r--Source/cmExportLibraryDependencies.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmExportLibraryDependencies.cxx b/Source/cmExportLibraryDependencies.cxx
index 364bc28..a83d7e1 100644
--- a/Source/cmExportLibraryDependencies.cxx
+++ b/Source/cmExportLibraryDependencies.cxx
@@ -73,9 +73,9 @@ void cmExportLibraryDependenciesCommand::FinalPass()
else
{
std::auto_ptr<cmGeneratedFileStream> ap(
- new cmGeneratedFileStream(fname.c_str()));
+ new cmGeneratedFileStream(fname.c_str(), true, true));
foutNew = ap;
- foutPtr = &foutNew->GetStream();
+ foutPtr = foutNew.get();
}
std::ostream& fout = *foutPtr;