From f6e7d5f3a00eee04834840a9534d19445fd3ab8f Mon Sep 17 00:00:00 2001 From: Vitaly Stakhovsky Date: Thu, 5 Nov 2020 11:00:00 -0500 Subject: Reduce the scope of temporary cmProp variables and other improvements --- Source/cmake.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/cmake.cxx') 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"; } -- cgit v1.2.1