summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2005-09-07 21:05:01 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2005-09-07 21:05:01 (GMT)
commit9c4bfe975a71337df6aa0046e86d0b8aba57ec62 (patch)
treeb515260c8d7350340d4eccaadec5890b6e816b22 /Source/cmGlobalGenerator.cxx
parent99368244bb4e42fa8eed8afd19f65ade4adaa41a (diff)
downloadCMake-9c4bfe975a71337df6aa0046e86d0b8aba57ec62.zip
CMake-9c4bfe975a71337df6aa0046e86d0b8aba57ec62.tar.gz
CMake-9c4bfe975a71337df6aa0046e86d0b8aba57ec62.tar.bz2
ENH: add a fix for VTK on the mac and a way to fix some projects with a single file in the cmake modules directory
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx14
1 files changed, 14 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 545309b..34b72cb 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -373,6 +373,20 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
}
}
}
+ } // end for each language
+ std::string projectCompatibility = mf->GetDefinition("CMAKE_ROOT");
+ projectCompatibility += "/Modules/";
+ projectCompatibility += mf->GetDefinition("PROJECT_NAME");
+ projectCompatibility += "Compatibility.cmake";
+ if(cmSystemTools::FileExists(projectCompatibility.c_str()))
+ {
+ mf->ReadListFile(0,projectCompatibility.c_str());
+ }
+ std::string userMakeRules =
+ mf->GetSafeDefinition("CMAKE_USER_MAKE_RULES_OVERRIDE");
+ if(userMakeRules.size())
+ {
+ mf->ReadListFile(0,userMakeRules.c_str());
}
}