From f2b3907cd070743557ddc02ae55eb074fddbac25 Mon Sep 17 00:00:00 2001 From: Brad King Date: Fri, 8 Nov 2024 17:06:18 -0500 Subject: [PATCH] cmSystemTools: Move static data to anonymous namespace --- Source/cmSystemTools.cxx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index f322e6459a..d241a938ff 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -2671,16 +2671,17 @@ std::string InitLogicalWorkingDirectory() std::string cmSystemToolsLogicalWorkingDirectory = InitLogicalWorkingDirectory(); + +std::string cmSystemToolsCMakeCommand; +std::string cmSystemToolsCTestCommand; +std::string cmSystemToolsCPackCommand; +std::string cmSystemToolsCMakeCursesCommand; +std::string cmSystemToolsCMakeGUICommand; +std::string cmSystemToolsCMClDepsCommand; +std::string cmSystemToolsCMakeRoot; +std::string cmSystemToolsHTMLDoc; } -static std::string cmSystemToolsCMakeCommand; -static std::string cmSystemToolsCTestCommand; -static std::string cmSystemToolsCPackCommand; -static std::string cmSystemToolsCMakeCursesCommand; -static std::string cmSystemToolsCMakeGUICommand; -static std::string cmSystemToolsCMClDepsCommand; -static std::string cmSystemToolsCMakeRoot; -static std::string cmSystemToolsHTMLDoc; void cmSystemTools::FindCMakeResources(const char* argv0) { std::string exe_dir;