From 4f304e7a07c803f2b4396f94a9f38efb32f080aa Mon Sep 17 00:00:00 2001 From: Bill Hoffman Date: Wed, 4 Oct 2006 11:11:21 -0400 Subject: BUG: fix for bug #3517 seg fault with enable language before project command --- Source/cmGlobalGenerator.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/cmGlobalGenerator.cxx b/Source/cmGlobalGenerator.cxx index 3124276..91ef6b3 100644 --- a/Source/cmGlobalGenerator.cxx +++ b/Source/cmGlobalGenerator.cxx @@ -463,7 +463,7 @@ cmGlobalGenerator::EnableLanguage(std::vectorconst& languages, // cmake std::string projectCompatibility = mf->GetDefinition("CMAKE_ROOT"); projectCompatibility += "/Modules/"; - projectCompatibility += mf->GetDefinition("PROJECT_NAME"); + projectCompatibility += mf->GetSafeDefinition("PROJECT_NAME"); projectCompatibility += "Compatibility.cmake"; if(cmSystemTools::FileExists(projectCompatibility.c_str())) { -- cgit v0.12