diff options
author | Alex Neundorf <neundorf@kde.org> | 2014-01-17 13:04:33 (GMT) |
---|---|---|
committer | Alex Neundorf <neundorf@kde.org> | 2014-01-17 13:04:33 (GMT) |
commit | e02cdba0549f64ee86ba5b059135d52b74c1f70f (patch) | |
tree | 74926aeeae75e89e0ae96000d30e537dab77ea0e | |
parent | dc08199848c20c7f76a68dbf54a85c736809ac57 (diff) | |
download | CMake-e02cdba0549f64ee86ba5b059135d52b74c1f70f.zip CMake-e02cdba0549f64ee86ba5b059135d52b74c1f70f.tar.gz CMake-e02cdba0549f64ee86ba5b059135d52b74c1f70f.tar.bz2 |
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
-rw-r--r-- | Source/cmExtraKateGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExtraKateGenerator.cxx b/Source/cmExtraKateGenerator.cxx index 0312488..d0f83b2 100644 --- a/Source/cmExtraKateGenerator.cxx +++ b/Source/cmExtraKateGenerator.cxx @@ -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" |