summaryrefslogtreecommitdiffstats
path: root/Source/cmExtraKateGenerator.cxx
diff options
context:
space:
mode:
authorAlex Neundorf <neundorf@kde.org>2014-01-17 13:04:33 (GMT)
committerAlex Neundorf <neundorf@kde.org>2014-01-17 13:04:33 (GMT)
commite02cdba0549f64ee86ba5b059135d52b74c1f70f (patch)
tree74926aeeae75e89e0ae96000d30e537dab77ea0e /Source/cmExtraKateGenerator.cxx
parentdc08199848c20c7f76a68dbf54a85c736809ac57 (diff)
downloadCMake-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
Diffstat (limited to 'Source/cmExtraKateGenerator.cxx')
-rw-r--r--Source/cmExtraKateGenerator.cxx2
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"