summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.cxx
diff options
context:
space:
mode:
authorDavid Cole <david.cole@kitware.com>2011-05-23 21:30:23 (GMT)
committerDavid Cole <david.cole@kitware.com>2011-05-23 21:30:23 (GMT)
commita6b52bd8ef82d015231b426ac2d0a1e84ee3a823 (patch)
tree5163a2c77c6a173996bbb170d50fe00baed59476 /Source/cmVisualStudio10TargetGenerator.cxx
parentcac769f3a7850ad46be660f2c4a1f6928bac488f (diff)
downloadCMake-a6b52bd8ef82d015231b426ac2d0a1e84ee3a823.zip
CMake-a6b52bd8ef82d015231b426ac2d0a1e84ee3a823.tar.gz
CMake-a6b52bd8ef82d015231b426ac2d0a1e84ee3a823.tar.bz2
VS10: Write header-only files in correct xml element (#11925)
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.cxx')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.cxx b/Source/cmVisualStudio10TargetGenerator.cxx
index b8fef25..6d2338e 100644
--- a/Source/cmVisualStudio10TargetGenerator.cxx
+++ b/Source/cmVisualStudio10TargetGenerator.cxx
@@ -455,7 +455,11 @@ void cmVisualStudio10TargetGenerator::WriteGroups()
{
lang = "None";
}
- if(lang[0] == 'C')
+ if(header)
+ {
+ headers.push_back(sf);
+ }
+ else if(lang[0] == 'C')
{
clCompile.push_back(sf);
}
@@ -467,10 +471,6 @@ void cmVisualStudio10TargetGenerator::WriteGroups()
{
customBuild.push_back(sf);
}
- else if(header)
- {
- headers.push_back(sf);
- }
else if(ext == "idl")
{
idls.push_back(sf);