BUG: fix for bug #3517 seg fault with enable language before project command
This commit is contained in:
parent
7ed0532ae9
commit
4f304e7a07
|
@ -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()))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue