summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2005-05-06 13:58:58 (GMT)
committerBrad King <brad.king@kitware.com>2005-05-06 13:58:58 (GMT)
commite8911705d6a790904f0c98f303de6ae370c60595 (patch)
tree3d612ebce8ed229dcb773797a8fc709005197df1 /Source/cmDepends.cxx
parent6f35a272a71a3eb642ddfa378dd6a1c4f1e9476a (diff)
downloadCMake-e8911705d6a790904f0c98f303de6ae370c60595.zip
CMake-e8911705d6a790904f0c98f303de6ae370c60595.tar.gz
CMake-e8911705d6a790904f0c98f303de6ae370c60595.tar.bz2
ENH: Added optional verbose output to build system dependency check.
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r--Source/cmDepends.cxx13
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());