diff options
author | Martin Duffy <martin.duffy@kitware.com> | 2023-09-11 13:36:12 (GMT) |
---|---|---|
committer | Martin Duffy <martin.duffy@kitware.com> | 2023-09-13 22:01:14 (GMT) |
commit | 634079b86d56e4d53240a52d80a2d3ba985ffb5f (patch) | |
tree | 790e931efd1dc5dd965bcea6309d4750250ff2a6 /Source/cmGeneratorExpressionNode.h | |
parent | 49e2a4a0a734f0e42e2d5717ab7c4bf4210af635 (diff) | |
download | CMake-634079b86d56e4d53240a52d80a2d3ba985ffb5f.zip CMake-634079b86d56e4d53240a52d80a2d3ba985ffb5f.tar.gz CMake-634079b86d56e4d53240a52d80a2d3ba985ffb5f.tar.bz2 |
cmGeneratorExpressionEvaluator: Short-circuit boolean operators
Diffstat (limited to 'Source/cmGeneratorExpressionNode.h')
-rw-r--r-- | Source/cmGeneratorExpressionNode.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/cmGeneratorExpressionNode.h b/Source/cmGeneratorExpressionNode.h index f068b02..7a76289 100644 --- a/Source/cmGeneratorExpressionNode.h +++ b/Source/cmGeneratorExpressionNode.h @@ -33,6 +33,12 @@ struct cmGeneratorExpressionNode virtual int NumExpectedParameters() const { return 1; } + virtual bool ShouldEvaluateNextParameter(const std::vector<std::string>&, + std::string&) const + { + return true; + } + virtual std::string Evaluate( const std::vector<std::string>& parameters, cmGeneratorExpressionContext* context, |