summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-10-27 15:17:01 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2016-10-27 15:17:01 (GMT)
commitfe03a86eb392b5c9a0f551e40b625cefa972e04b (patch)
treebdbdca39b587416123d24032d7285fb591c02f77
parent5448f0068cc4e228a7481905412fc956e239a827 (diff)
parent0caca40fccead726db6c4d5f5b4ea990958914df (diff)
downloadCMake-fe03a86eb392b5c9a0f551e40b625cefa972e04b.zip
CMake-fe03a86eb392b5c9a0f551e40b625cefa972e04b.tar.gz
CMake-fe03a86eb392b5c9a0f551e40b625cefa972e04b.tar.bz2
Merge topic 'vs-fix-no-toolset'
0caca40f VS: Fix use of `Windows7.1SDK` 64-bit toolset with VS 2010 Express
-rw-r--r--Source/cmGlobalVisualStudio10Generator.cxx6
1 files changed, 5 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio10Generator.cxx b/Source/cmGlobalVisualStudio10Generator.cxx
index 7d91740..2ce65cd 100644
--- a/Source/cmGlobalVisualStudio10Generator.cxx
+++ b/Source/cmGlobalVisualStudio10Generator.cxx
@@ -349,7 +349,11 @@ void cmGlobalVisualStudio10Generator::EnableLanguage(
const char* cmGlobalVisualStudio10Generator::GetPlatformToolset() const
{
- return this->GetPlatformToolsetString().c_str();
+ std::string const& toolset = this->GetPlatformToolsetString();
+ if (toolset.empty()) {
+ return CM_NULLPTR;
+ }
+ return toolset.c_str();
}
std::string const& cmGlobalVisualStudio10Generator::GetPlatformToolsetString()