diff options
author | Brad King <brad.king@kitware.com> | 2010-09-30 12:48:38 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2010-09-30 12:48:38 (GMT) |
commit | 448661fbe5c93fb1f59ea45847b3eef75e7b4a8a (patch) | |
tree | e498a99a4557aaba60a83f7205328fd296b39808 /Source/cmVisualStudio10TargetGenerator.h | |
parent | 4e137de7b1e49db168228607864e80a6960ec52f (diff) | |
download | CMake-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.h | 4 |
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, |