1
0
mirror of https://github.com/Kitware/CMake.git synced 2025-10-19 19:43:23 +08:00

cmVisualStudio10TargetGenerator: Make NsightTegraVersion unsigned

It's used in unsigned contexts, such as with format strings.
This commit is contained in:
jrp2014
2018-04-03 17:39:11 -04:00
committed by Brad King
parent 2f87d00803
commit 1519628e60
2 changed files with 3 additions and 3 deletions

View File

@@ -342,8 +342,8 @@ void cmVisualStudio10TargetGenerator::Generate()
if (this->NsightTegra) { if (this->NsightTegra) {
this->WriteString("<PropertyGroup Label=\"NsightTegraProject\">\n", 1); this->WriteString("<PropertyGroup Label=\"NsightTegraProject\">\n", 1);
const int nsightTegraMajorVersion = this->NsightTegraVersion[0]; const unsigned int nsightTegraMajorVersion = this->NsightTegraVersion[0];
const int nsightTegraMinorVersion = this->NsightTegraVersion[1]; const unsigned int nsightTegraMinorVersion = this->NsightTegraVersion[1];
if (nsightTegraMajorVersion >= 2) { if (nsightTegraMajorVersion >= 2) {
this->WriteString("<NsightTegraProjectRevisionNumber>", 2); this->WriteString("<NsightTegraProjectRevisionNumber>", 2);
if (nsightTegraMajorVersion > 3 || if (nsightTegraMajorVersion > 3 ||

View File

@@ -203,7 +203,7 @@ private:
bool MSTools; bool MSTools;
bool Managed; bool Managed;
bool NsightTegra; bool NsightTegra;
int NsightTegraVersion[4]; unsigned int NsightTegraVersion[4];
bool TargetCompileAsWinRT; bool TargetCompileAsWinRT;
cmGlobalVisualStudio10Generator* const GlobalGenerator; cmGlobalVisualStudio10Generator* const GlobalGenerator;
cmGeneratedFileStream* BuildFileStream; cmGeneratedFileStream* BuildFileStream;