summaryrefslogtreecommitdiff
path: root/Source/cmake.cxx
diff options
context:
space:
mode:
authorVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-05 11:00:00 -0500
committerVitaly Stakhovsky <vvs31415@gitlab.org>2020-11-05 11:07:39 -0500
commitf6e7d5f3a00eee04834840a9534d19445fd3ab8f (patch)
tree13f730473cd908d4d8f4673ff5ea78987385bf5a /Source/cmake.cxx
parentc43b0505a5806ce38274899cc09f42d3fd7d72ee (diff)
downloadcmake-f6e7d5f3a00eee04834840a9534d19445fd3ab8f.tar.gz
Reduce the scope of temporary cmProp variables and other improvements
Diffstat (limited to 'Source/cmake.cxx')
-rw-r--r--Source/cmake.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmake.cxx b/Source/cmake.cxx
index 0274a167c3..4a2bb490df 100644
--- a/Source/cmake.cxx
+++ b/Source/cmake.cxx
@@ -2571,8 +2571,7 @@ int cmake::CheckBuildSystem()
if (this->ClearBuildSystem) {
// Get the generator used for this build system.
- const char* genName =
- cmToCStr(mf.GetDefinition("CMAKE_DEPENDS_GENERATOR"));
+ std::string genName = mf.GetSafeDefinition("CMAKE_DEPENDS_GENERATOR");
if (!cmNonempty(genName)) {
genName = "Unix Makefiles";
}