diff options
author | Gilles Khouzam <gillesk@microsoft.com> | 2014-11-13 19:47:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-11-14 14:13:27 (GMT) |
commit | b20a32ac7349d38b215ef065773968c63c813f70 (patch) | |
tree | 7c7a0f4a22dc30c832c0d841e65c22f5822777d1 /Source/cmGlobalVisualStudio12Generator.h | |
parent | 54ff77dc621a91302abad0ab38d9bd26de8914b9 (diff) | |
download | CMake-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/cmGlobalVisualStudio12Generator.h')
-rw-r--r-- | Source/cmGlobalVisualStudio12Generator.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Source/cmGlobalVisualStudio12Generator.h b/Source/cmGlobalVisualStudio12Generator.h index ec85f10..a81516f 100644 --- a/Source/cmGlobalVisualStudio12Generator.h +++ b/Source/cmGlobalVisualStudio12Generator.h @@ -41,8 +41,14 @@ 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 "12.0"; } private: class Factory; |