diff options
author | Stephen Kelly <steveire@gmail.com> | 2015-10-10 12:34:26 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2015-10-10 13:36:58 (GMT) |
commit | b5212c68def0395642fc51dcfd499557eb9481d9 (patch) | |
tree | c5d390892ad8059fcda4318feb40ed65cae0942c /Source/cmUtilitySourceCommand.cxx | |
parent | 95b0d761a75fd2da041eacc9ee22b89043ae301f (diff) | |
download | CMake-b5212c68def0395642fc51dcfd499557eb9481d9.zip CMake-b5212c68def0395642fc51dcfd499557eb9481d9.tar.gz CMake-b5212c68def0395642fc51dcfd499557eb9481d9.tar.bz2 |
cmState: Add API for cache version.
Diffstat (limited to 'Source/cmUtilitySourceCommand.cxx')
-rw-r--r-- | Source/cmUtilitySourceCommand.cxx | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/Source/cmUtilitySourceCommand.cxx b/Source/cmUtilitySourceCommand.cxx index 486328f..3f1e333 100644 --- a/Source/cmUtilitySourceCommand.cxx +++ b/Source/cmUtilitySourceCommand.cxx @@ -11,8 +11,6 @@ ============================================================================*/ #include "cmUtilitySourceCommand.h" -#include "cmCacheManager.h" - // cmUtilitySourceCommand bool cmUtilitySourceCommand ::InitialPass(std::vector<std::string> const& args, cmExecutionStatus &) @@ -54,13 +52,13 @@ bool cmUtilitySourceCommand } else { - cmCacheManager *manager = - this->Makefile->GetCMakeInstance()->GetCacheManager(); + cmState *state = + this->Makefile->GetState(); haveCacheValue = (cacheValue && (strstr(cacheValue, "(IntDir)") == 0 || (intDir && strcmp(intDir, "$(IntDir)") == 0)) && - (manager->GetCacheMajorVersion() != 0 && - manager->GetCacheMinorVersion() != 0 )); + (state->GetCacheMajorVersion() != 0 && + state->GetCacheMinorVersion() != 0 )); } if(haveCacheValue) |