summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-10-31 13:39:42 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2013-10-31 13:39:42 (GMT)
commitc247f1e175212ea42f65f1ffa8cb85612a5af17c (patch)
treef5d843c55c8d95f89dea1987b21d549301853e94 /Source/cmGlobalGenerator.h
parente02e3560fc282c62561d244b5600bf54cbc9feb2 (diff)
parent29071fed2efbc7857f3994ac746641a4c5a36b9d (diff)
downloadCMake-c247f1e175212ea42f65f1ffa8cb85612a5af17c.zip
CMake-c247f1e175212ea42f65f1ffa8cb85612a5af17c.tar.gz
CMake-c247f1e175212ea42f65f1ffa8cb85612a5af17c.tar.bz2
Merge topic 'vs-generator-names'
29071fe VS: Add version year to generator names
Diffstat (limited to 'Source/cmGlobalGenerator.h')
-rw-r--r--Source/cmGlobalGenerator.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/cmGlobalGenerator.h b/Source/cmGlobalGenerator.h
index df434b3..4d6e10f 100644
--- a/Source/cmGlobalGenerator.h
+++ b/Source/cmGlobalGenerator.h
@@ -52,6 +52,10 @@ public:
///! Get the name for this generator
virtual const char *GetName() const { return "Generic"; };
+ /** Check whether the given name matches the current generator. */
+ virtual bool MatchesGeneratorName(const char* name) const
+ { return strcmp(this->GetName(), name) == 0; }
+
/** Set the generator-specific toolset name. Returns true if toolset
is supported and false otherwise. */
virtual bool SetGeneratorToolset(std::string const& ts);