summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio11Generator.h
diff options
context:
space:
mode:
authorGilles Khouzam <gillesk@microsoft.com>2014-11-13 19:47:01 (GMT)
committerBrad King <brad.king@kitware.com>2014-11-14 14:13:27 (GMT)
commitb20a32ac7349d38b215ef065773968c63c813f70 (patch)
tree7c7a0f4a22dc30c832c0d841e65c22f5822777d1 /Source/cmGlobalVisualStudio11Generator.h
parent54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff)
downloadCMake-b20a32ac7349d38b215ef065773968c63c813f70.zip
CMake-b20a32ac7349d38b215ef065773968c63c813f70.tar.gz
CMake-b20a32ac7349d38b215ef065773968c63c813f70.tar.bz2
VS: Improve error messages when compiler is not detected (#15228)
CMake requires both the Desktop SDK and the correct platform SDK (Windows Phone or Windows Store) to be installed when targeting the Windows mobile platforms. Verify that the right platform components are installed and give a more detailed error message when something is wrong.
Diffstat (limited to 'Source/cmGlobalVisualStudio11Generator.h')
-rw-r--r--Source/cmGlobalVisualStudio11Generator.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio11Generator.h b/Source/cmGlobalVisualStudio11Generator.h
index bbd935c..c79dc97 100644
--- a/Source/cmGlobalVisualStudio11Generator.h
+++ b/Source/cmGlobalVisualStudio11Generator.h
@@ -36,8 +36,15 @@ public:
protected:
virtual bool InitializeWindowsPhone(cmMakefile* mf);
virtual bool InitializeWindowsStore(cmMakefile* mf);
- virtual std::string SelectWindowsPhoneToolset() const;
- virtual std::string SelectWindowsStoreToolset() const;
+ virtual bool SelectWindowsPhoneToolset(std::string& toolset) const;
+ virtual bool SelectWindowsStoreToolset(std::string& toolset) const;
+
+ // These aren't virtual because we need to check if the selected version
+ // of the toolset is installed
+ bool IsWindowsDesktopToolsetInstalled() const;
+ bool IsWindowsPhoneToolsetInstalled() const;
+ bool IsWindowsStoreToolsetInstalled() const;
+
virtual const char* GetIDEVersion() { return "11.0"; }
bool UseFolderProperty();
static std::set<std::string> GetInstalledWindowsCESDKs();