summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2023-03-24 19:14:46 (GMT)
committerBrad King <brad.king@kitware.com>2023-03-24 19:57:52 (GMT)
commit846baa7c5bdb3a93a816dfaa2a9e37282fd38d48 (patch)
tree84ca6961ccd5b5b7935b138e07ebf5904c7d4de0 /Source/cmGlobalGenerator.h
parentfae6e8c2cdb5ce6049439f4defd1367b507d1e4b (diff)
downloadCMake-846baa7c5bdb3a93a816dfaa2a9e37282fd38d48.zip
CMake-846baa7c5bdb3a93a816dfaa2a9e37282fd38d48.tar.gz
CMake-846baa7c5bdb3a93a816dfaa2a9e37282fd38d48.tar.bz2
cmGlobalGenerator: Factor out helper to check target ordering
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 66ab752..f4862a0 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -479,6 +479,11 @@ public:
TargetDependSet const& GetTargetDirectDepends(
const cmGeneratorTarget* target);
+ // Return true if target 'l' occurs before 'r' in a global ordering
+ // of targets that respects inter-target dependencies.
+ bool TargetOrderIndexLess(cmGeneratorTarget const* l,
+ cmGeneratorTarget const* r) const;
+
const std::map<std::string, std::vector<cmLocalGenerator*>>& GetProjectMap()
const
{