summaryrefslogtreecommitdiffstats
path: root/Source/cmake.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/cmake.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/cmake.cxx')
-rw-r--r--Source/cmake.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 82816ca..dcc4c05 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -92,6 +92,8 @@ void cmNeedBackwardsCompatibility(const std::string& variable,
cmake::cmake()
{
m_DebugTryCompile = false;
+ m_ClearBuildSystem = false;
+
#ifdef __APPLE__
struct rlimit rlp;
if(!getrlimit(RLIMIT_STACK, &rlp))
@@ -304,6 +306,7 @@ void cmake::SetArgs(const std::vector<std::string>& args)
else if((i < args.size()-1) && (arg.find("--check-build-system",0) == 0))
{
m_CheckBuildSystem = args[++i];
+ m_ClearBuildSystem = (atoi(args[++i].c_str()) > 0);
}
else if(arg.find("-V",0) == 0)
{
@@ -1637,7 +1640,7 @@ int cmake::CheckBuildSystem()
{
std::auto_ptr<cmLocalGenerator> lgd(ggd->CreateLocalGenerator());
lgd->SetGlobalGenerator(ggd);
- lgd->CheckDependencies(mf, verbose);
+ lgd->CheckDependencies(mf, verbose, m_ClearBuildSystem);
}
// No need to rerun.