summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalVisualStudio7Generator.h
diff options
context:
space:
mode:
authorAnton Helwart <sidtrun@gmail.com>2013-02-04 09:35:48 (GMT)
committerBrad King <brad.king@kitware.com>2013-03-08 13:27:12 (GMT)
commit545fdec4f8ed705f948080ed203dabc7ab3628d3 (patch)
tree6ac001f618b174470c242b59189c011a13f26d6c /Source/cmLocalVisualStudio7Generator.h
parentaa027af9af0193f5c47a7f2adf239858afdf3807 (diff)
downloadCMake-545fdec4f8ed705f948080ed203dabc7ab3628d3.zip
CMake-545fdec4f8ed705f948080ed203dabc7ab3628d3.tar.gz
CMake-545fdec4f8ed705f948080ed203dabc7ab3628d3.tar.bz2
VS: Avoid empty source groups in some cases (#3474)
Teach the WriteGroup method return true if a group or any of its children have source files. Have children write their output to a temporay cmOStringStream. Add it to the real output only if not empty.
Diffstat (limited to 'Source/cmLocalVisualStudio7Generator.h')
-rw-r--r--Source/cmLocalVisualStudio7Generator.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmLocalVisualStudio7Generator.h b/Source/cmLocalVisualStudio7Generator.h
index 5a1d208..d9e2ef0 100644
--- a/Source/cmLocalVisualStudio7Generator.h
+++ b/Source/cmLocalVisualStudio7Generator.h
@@ -109,7 +109,7 @@ private:
FCInfo& fcinfo);
void WriteTargetVersionAttribute(std::ostream& fout, cmTarget& target);
- void WriteGroup(const cmSourceGroup *sg,
+ bool WriteGroup(const cmSourceGroup *sg,
cmTarget& target, std::ostream &fout,
const char *libName, std::vector<std::string> *configs);