mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-25 10:18:34 -06:00
file(GENERATE): Create output file structures even earlier
Since commitb80557c7bd(file(GENERATE): Evaluate early to allow generating source files, 2014-11-04, v3.2.0-rc1~398^2) we create the `cmSourceFile` instances marked with a `GENERATED` source file property before tracing source dependencies. Move it to even earlier so that steps in `cmGlobalGenerator::AddAutomaticSources` can operate on all sources. This also avoids the accidental `O(n^2)` calls for `n` local generators that we had previously. This is also needed since commit83c1657ff7(Unity build: Generate sources during Compute step, 2019-10-03) to support `file(GENERATE)` outputs as sources in a target with `UNITY_BUILD` enabled.
This commit is contained in:
@@ -418,6 +418,7 @@ public:
|
||||
|
||||
void IssueMessage(MessageType t, std::string const& text) const;
|
||||
|
||||
void CreateEvaluationFileOutputs();
|
||||
void CreateEvaluationFileOutputs(const std::string& config);
|
||||
void ProcessEvaluationFiles(std::vector<std::string>& generatedFiles);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user