summaryrefslogtreecommitdiffstats
path: root/Source/cmInstallTargetGenerator.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2021-01-18 21:40:48 (GMT)
committerBrad King <brad.king@kitware.com>2021-01-28 17:46:32 (GMT)
commit6282a8e19057c2540cee91e894f01f599e205240 (patch)
tree96def10b227e28d2099268f447eb6f9f3a714b0e /Source/cmInstallTargetGenerator.cxx
parent69ea84ec09aecd64b10c053cc3ecde18bfda2fa9 (diff)
downloadCMake-6282a8e19057c2540cee91e894f01f599e205240.zip
CMake-6282a8e19057c2540cee91e894f01f599e205240.tar.gz
CMake-6282a8e19057c2540cee91e894f01f599e205240.tar.bz2
cmInstallTargetGenerator: Move internal helper to anonymous namespace
Diffstat (limited to 'Source/cmInstallTargetGenerator.cxx')
-rw-r--r--Source/cmInstallTargetGenerator.cxx28
1 files 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<std::string> 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)
{