mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-06 14:19:59 -05:00
cmInstallTargetGenerator: Move internal helper to anonymous namespace
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user