BUG: fix for bug #3517 seg fault with enable language before project command

This commit is contained in:
Bill Hoffman 2006-10-04 11:11:21 -04:00
parent 7ed0532ae9
commit 4f304e7a07
1 changed files with 1 additions and 1 deletions

View File

@ -463,7 +463,7 @@ cmGlobalGenerator::EnableLanguage(std::vector<std::string>const& languages,
// cmake // cmake
std::string projectCompatibility = mf->GetDefinition("CMAKE_ROOT"); std::string projectCompatibility = mf->GetDefinition("CMAKE_ROOT");
projectCompatibility += "/Modules/"; projectCompatibility += "/Modules/";
projectCompatibility += mf->GetDefinition("PROJECT_NAME"); projectCompatibility += mf->GetSafeDefinition("PROJECT_NAME");
projectCompatibility += "Compatibility.cmake"; projectCompatibility += "Compatibility.cmake";
if(cmSystemTools::FileExists(projectCompatibility.c_str())) if(cmSystemTools::FileExists(projectCompatibility.c_str()))
{ {