summaryrefslogtreecommitdiffstats
path: root/Source/cmGeneratorExpressionEvaluationFile.h
diff options
context:
space:
mode:
authorRaul Tambre <raul@tambre.ee>2020-08-15 18:53:15 (GMT)
committerRaul Tambre <raul@tambre.ee>2020-08-20 14:41:52 (GMT)
commit27a912193bfe77e400784b152b1cd67003915c37 (patch)
tree5919a51c400894c9891720f44b842d347a892b31 /Source/cmGeneratorExpressionEvaluationFile.h
parent2a8f363a54c77bf1f110deabf1933e71a93ef3f4 (diff)
downloadCMake-27a912193bfe77e400784b152b1cd67003915c37.zip
CMake-27a912193bfe77e400784b152b1cd67003915c37.tar.gz
CMake-27a912193bfe77e400784b152b1cd67003915c37.tar.bz2
file(GENERATE): Add TARGET argument
Adds TARGET argument to file(GENERATE) to make resolving generator expressions requiring a target possible. Implements #21101, fixes #21074.
Diffstat (limited to 'Source/cmGeneratorExpressionEvaluationFile.h')
-rw-r--r--Source/cmGeneratorExpressionEvaluationFile.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/cmGeneratorExpressionEvaluationFile.h b/Source/cmGeneratorExpressionEvaluationFile.h
index a258a2d..caa8064 100644
--- a/Source/cmGeneratorExpressionEvaluationFile.h
+++ b/Source/cmGeneratorExpressionEvaluationFile.h
@@ -15,13 +15,14 @@
#include "cmGeneratorExpression.h"
#include "cmPolicies.h"
+class cmGeneratorTarget;
class cmLocalGenerator;
class cmGeneratorExpressionEvaluationFile
{
public:
cmGeneratorExpressionEvaluationFile(
- std::string input,
+ std::string input, std::string target,
std::unique_ptr<cmCompiledGeneratorExpression> outputFileExpr,
std::unique_ptr<cmCompiledGeneratorExpression> condition,
bool inputIsContent, cmPolicies::PolicyStatus policyStatusCMP0070);
@@ -40,6 +41,7 @@ private:
std::string GetInputFileName(cmLocalGenerator* lg);
std::string GetOutputFileName(cmLocalGenerator* lg,
+ cmGeneratorTarget* target,
const std::string& config,
const std::string& lang);
enum PathRole
@@ -52,6 +54,7 @@ private:
private:
const std::string Input;
+ const std::string Target;
const std::unique_ptr<cmCompiledGeneratorExpression> OutputFileExpr;
const std::unique_ptr<cmCompiledGeneratorExpression> Condition;
std::vector<std::string> Files;