support for plugins
This commit is contained in:
parent
a21140658c
commit
15b2d2f2a6
|
@ -19,7 +19,7 @@
|
||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
#include "cmStandardIncludes.h"
|
#include "cmStandardIncludes.h"
|
||||||
|
|
||||||
class cmake
|
class CM_EXPORT cmake
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
|
||||||
|
|
|
@ -101,16 +101,15 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
|
||||||
make.Generate(args);
|
make.Generate(args);
|
||||||
this->ShowMessage("\n");
|
this->ShowMessage("\n");
|
||||||
// load the cache from disk
|
// load the cache from disk
|
||||||
cmCacheManager::GetInstance()->
|
cmCacheManager *cachem = cmCacheManager::GetInstance();
|
||||||
|
cachem->
|
||||||
LoadCache(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
LoadCache(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
||||||
cmCacheManager::CacheEntryMap const& currentCache =
|
cmCacheManager::CacheIterator i = cachem->NewIterator();
|
||||||
cmCacheManager::GetInstance()->GetCacheMap();
|
|
||||||
// iterate over all entries in the cache
|
// iterate over all entries in the cache
|
||||||
for(cmCacheManager::CacheEntryMap::const_iterator i = currentCache.begin();
|
for(;!i.IsAtEnd(); i.Next())
|
||||||
i != currentCache.end(); ++i)
|
|
||||||
{
|
{
|
||||||
std::string key = i->first;
|
std::string key = i.GetName();
|
||||||
cmCacheManager::CacheEntry ce = i->second;
|
cmCacheManager::CacheEntry ce = i.GetEntry();
|
||||||
if(ce.m_Type == cmCacheManager::INTERNAL
|
if(ce.m_Type == cmCacheManager::INTERNAL
|
||||||
|| ce.m_Type == cmCacheManager::STATIC)
|
|| ce.m_Type == cmCacheManager::STATIC)
|
||||||
{
|
{
|
||||||
|
@ -136,7 +135,7 @@ void cmakewizard::RunWizard(std::vector<std::string> const& args)
|
||||||
asked = true;
|
asked = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
askedCache[key] = i->second;
|
askedCache[key] = i.GetEntry();
|
||||||
}
|
}
|
||||||
cmCacheManager::GetInstance()->
|
cmCacheManager::GetInstance()->
|
||||||
SaveCache(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
SaveCache(cmSystemTools::GetCurrentWorkingDirectory().c_str());
|
||||||
|
|
|
@ -19,7 +19,7 @@
|
||||||
#include "cmMakefile.h"
|
#include "cmMakefile.h"
|
||||||
#include "cmStandardIncludes.h"
|
#include "cmStandardIncludes.h"
|
||||||
|
|
||||||
class cmakewizard
|
class CM_EXPORT cmakewizard
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
cmakewizard();
|
cmakewizard();
|
||||||
|
|
Loading…
Reference in New Issue