summaryrefslogtreecommitdiffstats
path: root/Source/cmVisualStudio10TargetGenerator.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2010-09-30 12:48:38 (GMT)
committerBrad King <brad.king@kitware.com>2010-09-30 12:48:38 (GMT)
commit448661fbe5c93fb1f59ea45847b3eef75e7b4a8a (patch)
treee498a99a4557aaba60a83f7205328fd296b39808 /Source/cmVisualStudio10TargetGenerator.h
parent4e137de7b1e49db168228607864e80a6960ec52f (diff)
downloadCMake-448661fbe5c93fb1f59ea45847b3eef75e7b4a8a.zip
CMake-448661fbe5c93fb1f59ea45847b3eef75e7b4a8a.tar.gz
CMake-448661fbe5c93fb1f59ea45847b3eef75e7b4a8a.tar.bz2
VS10: Skip targets with no linker language (#11230)
In targets with no non-header files the linker language cannot be determined. Since the target project file cannot be generated at all in this case, give up as soon as it is detected. Otherwise the generation code may try to run with uninitialized information.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r--Source/cmVisualStudio10TargetGenerator.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h
index 64b2361..c3c27f4 100644
--- a/Source/cmVisualStudio10TargetGenerator.h
+++ b/Source/cmVisualStudio10TargetGenerator.h
@@ -50,8 +50,8 @@ private:
void WriteObjSources();
void WritePathAndIncrementalLinkOptions();
void WriteItemDefinitionGroups();
- void ComputeClOptions();
- void ComputeClOptions(std::string const& configName);
+ bool ComputeClOptions();
+ bool ComputeClOptions(std::string const& configName);
void WriteClOptions(std::string const& config,
std::vector<std::string> const & includes);
void WriteRCOptions(std::string const& config,