diff options
author | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-13 20:20:20 (GMT) |
---|---|---|
committer | Bill Hoffman <bill.hoffman@kitware.com> | 2002-11-13 20:20:20 (GMT) |
commit | 2905d39689a23c580b3356f668ad02397424f09e (patch) | |
tree | 9f73a87cb9c3030ea9871bc56e1a02a29cf04b4c /Source/cmGlobalUnixMakefileGenerator.cxx | |
parent | 46ede79d587f86b9ed8126f4d454b36b8fd9b151 (diff) | |
download | CMake-2905d39689a23c580b3356f668ad02397424f09e.zip CMake-2905d39689a23c580b3356f668ad02397424f09e.tar.gz CMake-2905d39689a23c580b3356f668ad02397424f09e.tar.bz2 |
ENH: check to make sure cmake matches the cmake used to generate the cache
Diffstat (limited to 'Source/cmGlobalUnixMakefileGenerator.cxx')
-rw-r--r-- | Source/cmGlobalUnixMakefileGenerator.cxx | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/Source/cmGlobalUnixMakefileGenerator.cxx b/Source/cmGlobalUnixMakefileGenerator.cxx index 4fc0f60..2619f69 100644 --- a/Source/cmGlobalUnixMakefileGenerator.cxx +++ b/Source/cmGlobalUnixMakefileGenerator.cxx @@ -24,21 +24,6 @@ void cmGlobalUnixMakefileGenerator::EnableLanguage(const char* lang, cmMakefile *mf) { bool isLocal = m_CMakeInstance->GetLocal(); - const char* majv = mf->GetDefinition("CMAKE_CACHE_MAJOR_VERSION"); - const char* minv = mf->GetDefinition("CMAKE_CACHE_MINOR_VERSION"); - const char* relv = mf->GetDefinition("CMAKE_CACHE_RELEASE_VERSION"); - bool cacheSameCMake = false; - if(majv && atoi(majv) == cmMakefile::GetMajorVersion() - && minv && atoi(minv) == cmMakefile::GetMinorVersion() - && relv && (strcmp(relv, cmMakefile::GetReleaseVersion()) == 0)) - { - cacheSameCMake = true; - } - if(!cacheSameCMake) - { - isLocal = false; - } - // if no lang specified use CXX if(!lang ) { |