diff options
author | Brad King <brad.king@kitware.com> | 2020-09-03 18:51:55 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2020-09-04 13:31:06 (GMT) |
commit | c4e296a60910c641a07695d1a9782912bce45d5c (patch) | |
tree | 53b0305890b4ab3d2fda351c56494425ad67ffd9 /Source/cmGlobalGenerator.h | |
parent | b03bc81d62c68c664990bbb4b8b92d23fe9673a8 (diff) | |
download | CMake-c4e296a60910c641a07695d1a9782912bce45d5c.zip CMake-c4e296a60910c641a07695d1a9782912bce45d5c.tar.gz CMake-c4e296a60910c641a07695d1a9782912bce45d5c.tar.bz2 |
cmGlobalGenerator: Compute a global target ordering respecting dependencies
Move this up from `cmGlobalXCodeGenerator`. It will be useful for all
generators.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r-- | Source/cmGlobalGenerator.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h index 6ae7e15..478028e 100644 --- a/Source/cmGlobalGenerator.h +++ b/Source/cmGlobalGenerator.h @@ -4,6 +4,7 @@ #include "cmConfigure.h" // IWYU pragma: keep +#include <cstddef> #include <iosfwd> #include <map> #include <memory> @@ -264,6 +265,9 @@ public: return this->LocalGenerators; } + std::vector<cmGeneratorTarget*> GetLocalGeneratorTargetsInOrder( + cmLocalGenerator* lg) const; + cmMakefile* GetCurrentMakefile() const { return this->CurrentConfigureMakefile; @@ -613,6 +617,10 @@ private: // Its order is not deterministic. LocalGeneratorMap LocalGeneratorSearchIndex; + void ComputeTargetOrder(); + void ComputeTargetOrder(cmGeneratorTarget const* gt, size_t& index); + std::map<cmGeneratorTarget const*, size_t> TargetOrderIndex; + cmMakefile* TryCompileOuterMakefile; // If you add a new map here, make sure it is copied // in EnableLanguagesFromGenerator |