summaryrefslogtreecommitdiffstats
path: root/Source/cmDepends.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-05-11 17:16:45 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-05-11 17:16:45 (GMT)
commitc85069b290922572f9ef15a06ec1d0d0be3adaaa (patch)
tree8ba1f7b378a0295cea5f550cd8fcb76cb676985e /Source/cmDepends.cxx
parent25d6c04add53631d6506674c3584fc0d8a6e0d46 (diff)
downloadCMake-c85069b290922572f9ef15a06ec1d0d0be3adaaa.zip
CMake-c85069b290922572f9ef15a06ec1d0d0be3adaaa.tar.gz
CMake-c85069b290922572f9ef15a06ec1d0d0be3adaaa.tar.bz2
ENH: some changes to the depends signature to be more flexible
Diffstat (limited to 'Source/cmDepends.cxx')
-rw-r--r--Source/cmDepends.cxx31
1 files changed, 19 insertions, 12 deletions
diff --git a/Source/cmDepends.cxx b/Source/cmDepends.cxx
index d2375fd..9544662 100644
--- a/Source/cmDepends.cxx
+++ b/Source/cmDepends.cxx
@@ -22,27 +22,34 @@
#include <assert.h>
//----------------------------------------------------------------------------
-cmDepends::cmDepends(const char* dir, const char* targetFile, bool verbose):
- m_Directory(dir),
- m_TargetFile(targetFile),
- m_DependsMakeFile(dir),
- m_DependsMarkFile(dir),
- m_Verbose(verbose)
+cmDepends::cmDepends()
{
+ m_Verbose = false;
+}
+
+//----------------------------------------------------------------------------
+cmDepends::~cmDepends()
+{
+}
+
+void cmDepends::SetTargetFile(const char* dir, const char* targetFile,
+ const char *markExt, const char *makeExt)
+{
+ m_Directory = dir;
+ m_TargetFile = targetFile;
+
// Construct the path to the make and mark files. Append
// appropriate extensions to their names.
+ m_DependsMarkFile = dir;
+ m_DependsMakeFile = dir;
m_DependsMakeFile += "/";
m_DependsMarkFile += "/";
m_DependsMakeFile += m_TargetFile;
m_DependsMarkFile += m_TargetFile;
- m_DependsMakeFile += ".depends.make";
- m_DependsMarkFile += ".depends";
+ m_DependsMakeFile += makeExt;
+ m_DependsMarkFile += markExt;
}
-//----------------------------------------------------------------------------
-cmDepends::~cmDepends()
-{
-}
//----------------------------------------------------------------------------
bool cmDepends::Write()