summaryrefslogtreecommitdiffstats
path: root/Source/cmVariableRequiresCommand.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2015-04-13 15:45:02 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2015-04-13 15:45:02 (GMT)
commit62c5e6f1a19df0043a0e9aaba6cf7247f76a5cc3 (patch)
tree8ca950377efbfd2cf90c7fe61eb7ff566a121d5e /Source/cmVariableRequiresCommand.cxx
parent92d61798937e42ecb7ae3d1be8b2b4ab7ce15fcb (diff)
parentf081c5bdddcfcaaf5bee7b918fe5c7ff01faae35 (diff)
downloadCMake-62c5e6f1a19df0043a0e9aaba6cf7247f76a5cc3.zip
CMake-62c5e6f1a19df0043a0e9aaba6cf7247f76a5cc3.tar.gz
CMake-62c5e6f1a19df0043a0e9aaba6cf7247f76a5cc3.tar.bz2
Merge topic 'introduce-cmState'
f081c5bd cmState: Move CacheEntryType enum from cmCacheManager. f71fdf0e cmMakefile: Remove unused CacheManager accessor. ff7169a0 Port to cmState. a6b1ad13 Introduce cmState class.
Diffstat (limited to 'Source/cmVariableRequiresCommand.cxx')
-rw-r--r--Source/cmVariableRequiresCommand.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmVariableRequiresCommand.cxx b/Source/cmVariableRequiresCommand.cxx
index dd2a682..1d33db1 100644
--- a/Source/cmVariableRequiresCommand.cxx
+++ b/Source/cmVariableRequiresCommand.cxx
@@ -10,7 +10,7 @@
See the License for more information.
============================================================================*/
#include "cmVariableRequiresCommand.h"
-#include "cmCacheManager.h"
+#include "cmState.h"
// cmLibraryCommand
bool cmVariableRequiresCommand
@@ -34,6 +34,7 @@ bool cmVariableRequiresCommand
bool requirementsMet = true;
std::string notSet;
bool hasAdvanced = false;
+ cmState* state = this->Makefile->GetState();
for(unsigned int i = 2; i < args.size(); ++i)
{
if(!this->Makefile->IsOn(args[i]))
@@ -41,9 +42,8 @@ bool cmVariableRequiresCommand
requirementsMet = false;
notSet += args[i];
notSet += "\n";
- cmCacheManager* manager = this->Makefile->GetCacheManager();
- if(manager->GetCacheEntryValue(args[i]) &&
- manager->GetCacheEntryPropertyAsBool(args[i], "ADVANCED"))
+ if(state->GetCacheEntryValue(args[i]) &&
+ state->GetCacheEntryPropertyAsBool(args[i], "ADVANCED"))
{
hasAdvanced = true;
}