mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-08 07:10:12 -05:00
Port to cmState.
This commit is contained in:
@@ -20,6 +20,7 @@
|
||||
#include "cmLocalGenerator.h"
|
||||
#include "cmExternalMakefileProjectGenerator.h"
|
||||
#include "cmake.h"
|
||||
#include "cmState.h"
|
||||
#include "cmMakefile.h"
|
||||
#include "cmQtAutoGenerators.h"
|
||||
#include "cmSourceFile.h"
|
||||
@@ -179,7 +180,7 @@ void cmGlobalGenerator::ResolveLanguageCompiler(const std::string &lang,
|
||||
return;
|
||||
}
|
||||
const char* cname = this->GetCMakeInstance()->
|
||||
GetCacheManager()->GetInitializedCacheValue(langComp);
|
||||
GetState()->GetInitializedCacheValue(langComp);
|
||||
std::string changeVars;
|
||||
if(cname && !optional)
|
||||
{
|
||||
@@ -1537,7 +1538,7 @@ void cmGlobalGenerator::CheckLocalGenerators()
|
||||
std::map<std::string, std::string> notFoundMap;
|
||||
// std::set<std::string> notFoundMap;
|
||||
// after it is all done do a ConfigureFinalPass
|
||||
cmCacheManager* manager = this->GetCMakeInstance()->GetCacheManager();
|
||||
cmState* state = this->GetCMakeInstance()->GetState();
|
||||
for (unsigned int i = 0; i < this->LocalGenerators.size(); ++i)
|
||||
{
|
||||
this->LocalGenerators[i]->ConfigureFinalPass();
|
||||
@@ -1559,7 +1560,7 @@ void cmGlobalGenerator::CheckLocalGenerators()
|
||||
cmSystemTools::IsNOTFOUND(lib->first.c_str()))
|
||||
{
|
||||
std::string varName = lib->first.substr(0, lib->first.size()-9);
|
||||
if(manager->GetCacheEntryPropertyAsBool(varName, "ADVANCED"))
|
||||
if(state->GetCacheEntryPropertyAsBool(varName, "ADVANCED"))
|
||||
{
|
||||
varName += " (ADVANCED)";
|
||||
}
|
||||
@@ -1590,7 +1591,7 @@ void cmGlobalGenerator::CheckLocalGenerators()
|
||||
cmSystemTools::IsNOTFOUND(incDir->c_str()))
|
||||
{
|
||||
std::string varName = incDir->substr(0, incDir->size()-9);
|
||||
if(manager->GetCacheEntryPropertyAsBool(varName, "ADVANCED"))
|
||||
if(state->GetCacheEntryPropertyAsBool(varName, "ADVANCED"))
|
||||
{
|
||||
varName += " (ADVANCED)";
|
||||
}
|
||||
@@ -1637,7 +1638,7 @@ int cmGlobalGenerator::TryCompile(const std::string& srcdir,
|
||||
// and there is a good chance that the try compile stuff will
|
||||
// take the bulk of the time, so try and guess some progress
|
||||
// by getting closer and closer to 100 without actually getting there.
|
||||
if (!this->CMakeInstance->GetCacheManager()->GetInitializedCacheValue
|
||||
if (!this->CMakeInstance->GetState()->GetInitializedCacheValue
|
||||
("CMAKE_NUMBER_OF_LOCAL_GENERATORS"))
|
||||
{
|
||||
// If CMAKE_NUMBER_OF_LOCAL_GENERATORS is not set
|
||||
@@ -1835,7 +1836,7 @@ void cmGlobalGenerator::AddLocalGenerator(cmLocalGenerator *lg)
|
||||
// update progress
|
||||
// estimate how many lg there will be
|
||||
const char *numGenC =
|
||||
this->CMakeInstance->GetCacheManager()->GetInitializedCacheValue
|
||||
this->CMakeInstance->GetState()->GetInitializedCacheValue
|
||||
("CMAKE_NUMBER_OF_LOCAL_GENERATORS");
|
||||
|
||||
if (!numGenC)
|
||||
|
||||
Reference in New Issue
Block a user