diff options
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r-- | Source/cmDepends.cxx | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx index 0972341..d2375fd 100644 --- a/Source/cmDepends.cxx +++ b/Source/cmDepends.cxx @@ -22,11 +22,12 @@ #include <assert.h> //---------------------------------------------------------------------------- -cmDepends::cmDepends(const char* dir, const char* targetFile): +cmDepends::cmDepends(const char* dir, const char* targetFile, bool verbose): m_Directory(dir), m_TargetFile(targetFile), m_DependsMakeFile(dir), - m_DependsMarkFile(dir) + m_DependsMarkFile(dir), + m_Verbose(verbose) { // Construct the path to the make and mark files. Append // appropriate extensions to their names. @@ -97,6 +98,14 @@ void cmDepends::Check() //---------------------------------------------------------------------------- void cmDepends::Clear() { + // Print verbose output. + if(m_Verbose) + { + cmOStringStream msg; + msg << "Clearing dependencies for \"" << m_TargetFile << "\"." << std::endl; + cmSystemTools::Stdout(msg.str().c_str()); + } + // Remove the dependency mark file to be sure dependencies will be // regenerated. cmSystemTools::RemoveFile(m_DependsMarkFile.c_str()); |