summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2008-03-04 23:41:52 (GMT)
committerBrad King <brad.king@kitware.com>2008-03-04 23:41:52 (GMT)
commit53e0ed3273c1a4a8f304f482220a474c3bc0e689 (patch)
treec963ebae42381cfe9fdd91c23073810bc41438b0 /Source/cmGlobalGenerator.cxx
parentcd4d2acbe654ca57a9ffc7ca34dcf4835bfc77c3 (diff)
downloadCMake-53e0ed3273c1a4a8f304f482220a474c3bc0e689.zip
CMake-53e0ed3273c1a4a8f304f482220a474c3bc0e689.tar.gz
CMake-53e0ed3273c1a4a8f304f482220a474c3bc0e689.tar.bz2
BUG: Fix crash when CMAKE_BACKWARDS_COMPATIBILITY is not set.
Diffstat (limited to 'Source/cmGlobalGenerator.cxx')
-rw-r--r--Source/cmGlobalGenerator.cxx4
1 files changed, 1 insertions, 3 deletions
diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx
index 003788e..cf9d0a9 100644
--- a/Source/cmGlobalGenerator.cxx
+++ b/Source/cmGlobalGenerator.cxx
@@ -464,9 +464,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
// backwards compatibility files they have to load
// These files have a bunch of try compiles in them so
// should only be done
- const char* versionValue
- = mf->GetDefinition("CMAKE_BACKWARDS_COMPATIBILITY");
- if (atof(versionValue) <= 1.4)
+ if (mf->NeedBackwardsCompatibility(1,4))
{
if(strcmp(lang, "C") == 0)
{