summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorKen Martin <ken.martin@kitware.com>2005-06-10 14:45:08 (GMT)
committerKen Martin <ken.martin@kitware.com>2005-06-10 14:45:08 (GMT)
commite559aa11ac92f0cedab7912f0672fb9471124467 (patch)
tree1036d72b3b57d354b367017e5b44d4a52bacc46d /Source/cmLocalUnixMakefileGenerator3.cxx
parente1870805b4a700e6739f73f66f9be77bcc3e82f4 (diff)
downloadCMake-e559aa11ac92f0cedab7912f0672fb9471124467.zip
CMake-e559aa11ac92f0cedab7912f0672fb9471124467.tar.gz
CMake-e559aa11ac92f0cedab7912f0672fb9471124467.tar.bz2
ENH: added support for forcing recomputation of depends
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx15
1 files changed, 12 insertions, 3 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index 1e2ce43..cee2a0d 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -1164,7 +1164,8 @@ cmLocalUnixMakefileGenerator3
"$(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)";
runRule += " --check-build-system ";
runRule += this->Convert(cmakefileName.c_str(),NONE,SHELL);
-
+ runRule += " 0";
+
std::vector<std::string> no_depends;
std::vector<std::string> commands;
commands.push_back(runRule);
@@ -2883,7 +2884,8 @@ void cmLocalUnixMakefileGenerator3
//----------------------------------------------------------------------------
void cmLocalUnixMakefileGenerator3::CheckDependencies(cmMakefile* mf,
- bool verbose)
+ bool verbose,
+ bool clear)
{
// Get the list of languages that may have sources to check.
const char* langDef = mf->GetDefinition("CMAKE_DEPENDS_LANGUAGES");
@@ -2914,7 +2916,14 @@ void cmLocalUnixMakefileGenerator3::CheckDependencies(cmMakefile* mf,
checker(this->GetDependsChecker(*l, ".", f->c_str(), verbose));
if(checker.get())
{
- checker->Check();
+ if (clear)
+ {
+ checker->Clear();
+ }
+ else
+ {
+ checker->Check();
+ }
}
}
}