summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio10Generator.cxx
diff options
context:
space:
mode:
authorLeonid Yurchenko <nocturne@qarea.com>2012-04-16 14:07:19 (GMT)
committerBrad King <brad.king@kitware.com>2012-04-16 14:17:03 (GMT)
commit59139031a1aa24231b9302aa4cd8ecc4e22fb594 (patch)
tree297337f0f3f22ef31cfc9b04f7cf59d1536dde1f /Source/cmLocalVisualStudio10Generator.cxx
parent31e7fadbb3bfd225e0d48e2d072ccc745d7f2689 (diff)
downloadCMake-59139031a1aa24231b9302aa4cd8ecc4e22fb594.zip
CMake-59139031a1aa24231b9302aa4cd8ecc4e22fb594.tar.gz
CMake-59139031a1aa24231b9302aa4cd8ecc4e22fb594.tar.bz2
include_external_msproject: Add TYPE, GUID, PLATFORM options (#13120)
These allow one to reference more external VS project file variations.
Diffstat (limited to 'Source/cmLocalVisualStudio10Generator.cxx')
-rw-r--r--Source/cmLocalVisualStudio10Generator.cxx8
1 files changed, 8 insertions, 0 deletions
diff --git a/Source/cmLocalVisualStudio10Generator.cxx b/Source/cmLocalVisualStudio10Generator.cxx
index bf0e997..ace7adf 100644
--- a/Source/cmLocalVisualStudio10Generator.cxx
+++ b/Source/cmLocalVisualStudio10Generator.cxx
@@ -99,6 +99,14 @@ void cmLocalVisualStudio10Generator
{
cmVS10XMLParser parser;
parser.ParseFile(path);
+
+ // if we can not find a GUID then create one
+ if(parser.GUID.empty())
+ {
+ this->GlobalGenerator->CreateGUID(name);
+ return;
+ }
+
std::string guidStoreName = name;
guidStoreName += "_GUID_CMAKE";
// save the GUID in the cache