summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r--Source/cmDepends.cxx7
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx
index 4933f5f..feb6625 100644
--- a/Source/cmDepends.cxx
+++ b/Source/cmDepends.cxx
@@ -42,7 +42,7 @@ cmDepends::~cmDepends()
}
//----------------------------------------------------------------------------
-void cmDepends::Write()
+bool cmDepends::Write()
{
// Try to generate dependencies for the target file.
cmGeneratedFileStream fout(m_DependsMakeFile.c_str());
@@ -52,6 +52,11 @@ void cmDepends::Write()
// Dependencies were generated. Touch the mark file.
std::ofstream fmark(m_DependsMarkFile.c_str());
fmark << "Dependencies updated for " << m_TargetFile.c_str() << std::endl;
+ return true;
+ }
+ else
+ {
+ return false;
}
}