mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-07 06:40:16 -05:00
cmLocalGenerator: Remove the launcher from RuleVariables
This one is not like the others as it doesn't participate in substitutions. Keep ExpandRuleVariables doing only one thing and make callers responsible for inserting a launcher prefix, simplifying the code all-around. Remove now-obsolete InsertRuleLauncher method.
This commit is contained in:
@@ -346,6 +346,13 @@ public:
|
||||
void CreateEvaluationFileOutputs(const std::string& config);
|
||||
void ProcessEvaluationFiles(std::vector<std::string>& generatedFiles);
|
||||
|
||||
// Expand rule variables in CMake of the type found in language rules
|
||||
void ExpandRuleVariables(std::string& string,
|
||||
const RuleVariables& replaceValues);
|
||||
|
||||
const char* GetRuleLauncher(cmGeneratorTarget* target,
|
||||
const std::string& prop);
|
||||
|
||||
protected:
|
||||
///! put all the libraries for a target on into the given stream
|
||||
void OutputLinkLibraries(cmComputeLinkInformation* pcli,
|
||||
@@ -353,18 +360,10 @@ protected:
|
||||
std::string& linkLibraries,
|
||||
std::string& frameworkPath, std::string& linkPath);
|
||||
|
||||
// Expand rule variables in CMake of the type found in language rules
|
||||
void ExpandRuleVariables(std::string& string,
|
||||
const RuleVariables& replaceValues);
|
||||
// Expand rule variables in a single string
|
||||
std::string ExpandRuleVariable(std::string const& variable,
|
||||
const RuleVariables& replaceValues);
|
||||
|
||||
const char* GetRuleLauncher(cmGeneratorTarget* target,
|
||||
const std::string& prop);
|
||||
void InsertRuleLauncher(std::string& s, cmGeneratorTarget* target,
|
||||
const std::string& prop);
|
||||
|
||||
// Handle old-style install rules stored in the targets.
|
||||
void GenerateTargetInstallRules(
|
||||
std::ostream& os, const std::string& config,
|
||||
|
||||
Reference in New Issue
Block a user