From 5c92fa4879c6a45f49ac23b9eb310df8fe8c9483 Mon Sep 17 00:00:00 2001 From: Ken Martin Date: Thu, 9 Jan 2003 08:47:54 -0500 Subject: only load bw compat if CMAKE_BACK... is set --- Source/cmGlobalGenerator.cxx | 8 ++++---- 1 file 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()); -- cgit v0.12