Kate: use cmMakefile::GetSafeDefinition() for a not-required variable
...otherwise the generator failed in embedded projects via externalproject(), since there CMAKE_KATE_MAKE_ARGUMENT is not set. Using GetSafeDefinition() is good enough to protect against NULL-pointers. Alex
This commit is contained in:
parent
dc08199848
commit
e02cdba054
|
@ -70,7 +70,7 @@ void cmExtraKateGenerator::CreateKateProjectFile(const cmMakefile* mf) const
|
|||
}
|
||||
|
||||
std::string make = mf->GetRequiredDefinition("CMAKE_MAKE_PROGRAM");
|
||||
std::string args = mf->GetRequiredDefinition("CMAKE_KATE_MAKE_ARGUMENTS");
|
||||
std::string args = mf->GetSafeDefinition("CMAKE_KATE_MAKE_ARGUMENTS");
|
||||
|
||||
fout <<
|
||||
"{\n"
|
||||
|
|
Loading…
Reference in New Issue