summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudioGenerator.h
diff options
context:
space:
mode:
authorPatrick Gansterer <paroga@paroga.com>2012-07-21 13:37:46 (GMT)
committerBrad King <brad.king@kitware.com>2012-08-22 19:08:40 (GMT)
commit2c7a451de003782b1ba5e47ab377f33f1fa5c4e5 (patch)
tree8d5700d778df484bbeab7eb5a893fe346373fce8 /Source/cmGlobalVisualStudioGenerator.h
parentaddefc2ae3b33a75a7152730146b46b319118a24 (diff)
downloadCMake-2c7a451de003782b1ba5e47ab377f33f1fa5c4e5.zip
CMake-2c7a451de003782b1ba5e47ab377f33f1fa5c4e5.tar.gz
CMake-2c7a451de003782b1ba5e47ab377f33f1fa5c4e5.tar.bz2
VS: Cleanup AddPlatformDefinitions() of Visual Studio generators
Move adding of definitions into cmGlobalVisualStudioGenerator to share code and avoid duplicate architecture string literals.
Diffstat (limited to 'Source/cmGlobalVisualStudioGenerator.h')
-rw-r--r--Source/cmGlobalVisualStudioGenerator.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/cmGlobalVisualStudioGenerator.h b/Source/cmGlobalVisualStudioGenerator.h
index 27fc8cf..a042dc0 100644
--- a/Source/cmGlobalVisualStudioGenerator.h
+++ b/Source/cmGlobalVisualStudioGenerator.h
@@ -84,6 +84,8 @@ protected:
virtual const char* GetIDEVersion() = 0;
+ virtual void AddPlatformDefinitions(cmMakefile* mf);
+
virtual bool ComputeTargetDepends();
class VSDependSet: public std::set<cmStdString> {};
class VSDependMap: public std::map<cmTarget*, VSDependSet> {};
@@ -96,6 +98,9 @@ protected:
std::string GetUtilityDepend(cmTarget* target);
typedef std::map<cmTarget*, cmStdString> UtilityDependsMap;
UtilityDependsMap UtilityDepends;
+ const char* ArchitectureId;
+ const char* VersionId;
+
private:
void ComputeTargetObjects(cmGeneratorTarget* gt) const;