summaryrefslogtreecommitdiffstats
path: root/Source/cmGlobalVisualStudio71Generator.cxx
diff options
context:
space:
mode:
authorDavid Golub <golubdr@gmail.com>2013-12-19 21:39:19 (GMT)
committerBrad King <brad.king@kitware.com>2013-12-20 16:02:11 (GMT)
commita79cbdc0682415ef740633f8289ec8821f0c879c (patch)
treedb0f65618f431037137c38c069d33f137f826fb5 /Source/cmGlobalVisualStudio71Generator.cxx
parent6820882be57942403fa7eaf706a0169fd2816fc2 (diff)
downloadCMake-a79cbdc0682415ef740633f8289ec8821f0c879c.zip
CMake-a79cbdc0682415ef740633f8289ec8821f0c879c.tar.gz
CMake-a79cbdc0682415ef740633f8289ec8821f0c879c.tar.bz2
VS: Teach include_external_msproject about non-C++ projects (#14661)
Teach CMake to guess the project type guid based on the project file extension. This allows non-C++ projects like *.vbproj or *.csproj to be included.
Diffstat (limited to 'Source/cmGlobalVisualStudio71Generator.cxx')
-rw-r--r--Source/cmGlobalVisualStudio71Generator.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmGlobalVisualStudio71Generator.cxx b/Source/cmGlobalVisualStudio71Generator.cxx
index 6cfad25..22e4f08 100644
--- a/Source/cmGlobalVisualStudio71Generator.cxx
+++ b/Source/cmGlobalVisualStudio71Generator.cxx
@@ -240,7 +240,7 @@ void cmGlobalVisualStudio71Generator
const std::set<cmStdString>& depends)
{
fout << "Project(\"{"
- << (typeGuid ? typeGuid : "8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942")
+ << (typeGuid ? typeGuid : this->ExternalProjectType(location))
<< "}\") = \""
<< name << "\", \""
<< this->ConvertToSolutionPath(location) << "\", \"{"