summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2012-04-18 19:28:12 (GMT)
committerBrad King <brad.king@kitware.com>2012-04-18 19:49:38 (GMT)
commit369e3464beb8258ce5b2af8bcbe6b476fca379de (patch)
tree86ca6b0e9cb1f1b39462c50bd53df8398d457ed2 /Source/cmGlobalGenerator.h
parentf9b758e91a9afa17123c5b81b5568ebbd52db598 (diff)
downloadCMake-369e3464beb8258ce5b2af8bcbe6b476fca379de.zip
CMake-369e3464beb8258ce5b2af8bcbe6b476fca379de.tar.gz
CMake-369e3464beb8258ce5b2af8bcbe6b476fca379de.tar.bz2
Factor out custom command .rule file path generation
Add cmGlobalGenerator::GenerateRuleFile to compute a generator-specific rule file location. This will allow specific generators to override the location of .rule files without changing the behavior of other generators.
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index 80b948b..5254b89 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -277,6 +277,9 @@ public:
i.e. "Can I build Debug and Release in the same tree?" */
virtual bool IsMultiConfig() { return false; }
+ /** Generate an <output>.rule file path for a given command output. */
+ virtual std::string GenerateRuleFile(std::string const& output) const;
+
protected:
typedef std::vector<cmLocalGenerator*> GeneratorVector;
// for a project collect all its targets by following depend