diff options
author | Daniel Eiband <daniel.eiband@brainlab.com> | 2019-09-21 22:06:45 (GMT) |
---|---|---|
committer | Daniel Eiband <daniel.eiband@brainlab.com> | 2019-09-22 07:51:19 (GMT) |
commit | c12222db86859a5a5ce9163a5309bb0da10ec616 (patch) | |
tree | 674d778541027e2430ffe25a8155ad1aa2a44491 /Source/cmExportTryCompileFileGenerator.cxx | |
parent | 1811411fecf3d9769ad7a13f6ecd01c5351df9c4 (diff) | |
download | CMake-c12222db86859a5a5ce9163a5309bb0da10ec616.zip CMake-c12222db86859a5a5ce9163a5309bb0da10ec616.tar.gz CMake-c12222db86859a5a5ce9163a5309bb0da10ec616.tar.bz2 |
cmGeneratorExpression: Remove Evaluate overload by parameter re-ordering
Simplify by re-ordering parameters of cmCompiledGeneratorExpression::Evaluate
so that frequently used parameters are before less frequently used parameters.
This allows with little extra arguments to get rid of one Evaluate overload,
which makes it easier to implement the cmGeneratorExpression::Evaluate utility.
The latter would otherwise need four overloads.
Diffstat (limited to 'Source/cmExportTryCompileFileGenerator.cxx')
-rw-r--r-- | Source/cmExportTryCompileFileGenerator.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmExportTryCompileFileGenerator.cxx b/Source/cmExportTryCompileFileGenerator.cxx index 5852360..4027d4b 100644 --- a/Source/cmExportTryCompileFileGenerator.cxx +++ b/Source/cmExportTryCompileFileGenerator.cxx @@ -75,7 +75,7 @@ std::string cmExportTryCompileFileGenerator::FindTargets( cmGeneratorTarget gDummyHead(&dummyHead, tgt->GetLocalGenerator()); std::string result = cge->Evaluate(tgt->GetLocalGenerator(), this->Config, - &gDummyHead, tgt, &dagChecker, language); + &gDummyHead, &dagChecker, tgt, language); const std::set<cmGeneratorTarget const*>& allTargets = cge->GetAllTargetsSeen(); |