diff options
author | Ken Martin <ken.martin@kitware.com> | 2003-01-09 13:47:54 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2003-01-09 13:47:54 (GMT) |
commit | 5c92fa4879c6a45f49ac23b9eb310df8fe8c9483 (patch) | |
tree | 5e357144230f287a5a359c8539a12ce7ae9712c2 /Source/cmGlobalGenerator.cxx | |
parent | 26bc7299336f6100c50078c62cfbdfcc07ebe98c (diff) | |
download | CMake-5c92fa4879c6a45f49ac23b9eb310df8fe8c9483.zip CMake-5c92fa4879c6a45f49ac23b9eb310df8fe8c9483.tar.gz CMake-5c92fa4879c6a45f49ac23b9eb310df8fe8c9483.tar.bz2 |
only load bw compat if CMAKE_BACK... is set
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r-- | Source/cmGlobalGenerator.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 7830662..71d3568 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -204,8 +204,8 @@ void cmGlobalGenerator::EnableLanguage(const char* lang, { // for old versions of CMake ListFiles const char* versionValue - = mf->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION"); - if (!versionValue || atof(versionValue) <= 1.4) + = mf->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY"); + if (atof(versionValue) <= 1.4) { std::string ifpath = root + "/Modules/CMakeBackwardCompatibilityC.cmake"; mf->ReadListFile(0,ifpath.c_str()); @@ -218,8 +218,8 @@ void cmGlobalGenerator::EnableLanguage(const char* lang, { // for old versions of CMake ListFiles const char* versionValue - = mf->GetDefinition("CMAKE_MINIMUM_REQUIRED_VERSION"); - if (!versionValue || atof(versionValue) <= 1.4) + = mf->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY"); + if (atof(versionValue) <= 1.4) { std::string nfpath = root + "/Modules/CMakeBackwardCompatibilityCXX.cmake"; mf->ReadListFile(0,nfpath.c_str()); |