ENH: Add additional optional argument to Run. If it is true, it will only set paths and load cache. It will not do configure and gfenerate

This commit is contained in:
Andy Cedilnik 2003-04-29 10:04:05 -04:00
parent 42db187012
commit e72535fda7
2 changed files with 9 additions and 2 deletions

View File

@ -909,7 +909,7 @@ bool cmake::CacheVersionMatches()
}
// handle a command line invocation
int cmake::Run(const std::vector<std::string>& args)
int cmake::Run(const std::vector<std::string>& args, bool noconfigure)
{
// Process the arguments
this->SetArgs(args);
@ -941,6 +941,11 @@ int cmake::Run(const std::vector<std::string>& args)
std::string systemFile = this->GetHomeOutputDirectory();
systemFile += "/CMakeSystem.cmake";
if ( noconfigure )
{
return 0;
}
int ret = 0;
// if not local or the cmake version has changed since the last run
// of cmake, or CMakeSystem.cmake file is not in the root binary

View File

@ -119,7 +119,9 @@ class cmake
/**
* Handle a command line invocation of cmake.
*/
int Run(const std::vector<std::string>&args);
int Run(const std::vector<std::string>&args)
{ this->Run(args, false); }
int Run(const std::vector<std::string>&args, bool noconfigure);
/**
* Generate the SourceFilesList from the SourceLists. This should only be