summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-02-07 21:11:01 (GMT)
committerBrad King <brad.king@kitware.com>2005-02-07 21:11:01 (GMT)
commit337ad802c64d10904700457939a8b5e0a48439be (patch)
tree5bee5711c158e1ae87afdacb0061d880d8a6ff43 /Source/cmDepends.cxx
parentc44e6d30e5127457060f8e027fbff17ac89e98a5 (diff)
downloadCMake-337ad802c64d10904700457939a8b5e0a48439be.zip
CMake-337ad802c64d10904700457939a8b5e0a48439be.tar.gz
CMake-337ad802c64d10904700457939a8b5e0a48439be.tar.bz2
ENH: Implemented support for include/complain regular expressions for dependency scanning. This now includes the possibility that scanning will return failure and the build will stop.
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;
}
}