summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2016-08-26 14:03:31 (GMT)
committerBrad King <brad.king@kitware.com>2016-08-26 14:03:37 (GMT)
commitc8c58947f289d7a51198cf73d171573be3805b8f (patch)
tree3688a1d01ea1c41d0f52ef43541f99cbfd72b57a /Source
parent83fd4a7039f46e458186274feb3ba397a4f58bb8 (diff)
parent1f4aeb1739fb632ab5162a977764b51736728edc (diff)
downloadCMake-c8c58947f289d7a51198cf73d171573be3805b8f.zip
CMake-c8c58947f289d7a51198cf73d171573be3805b8f.tar.gz
CMake-c8c58947f289d7a51198cf73d171573be3805b8f.tar.bz2
Merge branch 'vs-NsightTegra-empty-version' into release
Diffstat (limited to 'Source')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx9
1 files changed, 4 insertions, 5 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index 11dc28c..e31a192 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -185,13 +185,12 @@ cmVisualStudio10TargetGenerator::cmVisualStudio10TargetGenerator(
this->GUID = this->GlobalGenerator->GetGUID(this->Name.c_str());
this->Platform = gg->GetPlatformName();
this->NsightTegra = gg->IsNsightTegra();
- for (int i =
- sscanf(gg->GetNsightTegraVersion().c_str(), "%u.%u.%u.%u",
- &this->NsightTegraVersion[0], &this->NsightTegraVersion[1],
- &this->NsightTegraVersion[2], &this->NsightTegraVersion[3]);
- i < 4; ++i) {
+ for (int i = 0; i < 4; ++i) {
this->NsightTegraVersion[i] = 0;
}
+ sscanf(gg->GetNsightTegraVersion().c_str(), "%u.%u.%u.%u",
+ &this->NsightTegraVersion[0], &this->NsightTegraVersion[1],
+ &this->NsightTegraVersion[2], &this->NsightTegraVersion[3]);
this->MSTools = !this->NsightTegra;
this->TargetCompileAsWinRT = false;
this->BuildFileStream = 0;