From 6282a8e19057c2540cee91e894f01f599e205240 Mon Sep 17 00:00:00 2001 From: Brad King Date: Mon, 18 Jan 2021 16:40:48 -0500 Subject: cmInstallTargetGenerator: Move internal helper to anonymous namespace --- Source/cmInstallTargetGenerator.cxx | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/Source/cmInstallTargetGenerator.cxx b/Source/cmInstallTargetGenerator.cxx index b3da202..8583216 100644 --- a/Source/cmInstallTargetGenerator.cxx +++ b/Source/cmInstallTargetGenerator.cxx @@ -25,6 +25,21 @@ #include "cmTarget.h" #include "cmake.h" +namespace { +std::string computeInstallObjectDir(cmGeneratorTarget* gt, + std::string const& config) +{ + std::string objectDir = "objects"; + if (!config.empty()) { + objectDir += "-"; + objectDir += config; + } + objectDir += "/"; + objectDir += gt->GetName(); + return objectDir; +} +} + cmInstallTargetGenerator::cmInstallTargetGenerator( std::string targetName, std::string const& dest, bool implib, std::string file_permissions, std::vector const& configurations, @@ -332,19 +347,6 @@ void cmInstallTargetGenerator::GenerateScriptForConfig( &cmInstallTargetGenerator::PostReplacementTweaks); } -static std::string computeInstallObjectDir(cmGeneratorTarget* gt, - std::string const& config) -{ - std::string objectDir = "objects"; - if (!config.empty()) { - objectDir += "-"; - objectDir += config; - } - objectDir += "/"; - objectDir += gt->GetName(); - return objectDir; -} - void cmInstallTargetGenerator::GenerateScriptForConfigObjectLibrary( std::ostream& os, const std::string& config, Indent indent) { -- cgit v0.12