diff options
author | Brad King <brad.king@kitware.com> | 2012-10-26 14:16:45 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-10-26 14:16:45 (GMT) |
commit | c65a2ea6a83f274afc52ca6adc457dec069de064 (patch) | |
tree | 88401d4f05fde5264864fab4cfdcaffa2fcb30ea /Source/cmVisualStudio10TargetGenerator.h | |
parent | 259cff94ff81f7b95b7375905fe0e0a292f70dda (diff) | |
download | CMake-c65a2ea6a83f274afc52ca6adc457dec069de064.zip CMake-c65a2ea6a83f274afc52ca6adc457dec069de064.tar.gz CMake-c65a2ea6a83f274afc52ca6adc457dec069de064.tar.bz2 |
VS10: Refactor link options collection
Avoid collecting the link options twice. Collect them once in a
LinkOptions member and use it from both places. We already do this for
compiler options with the ClOptions member.
Diffstat (limited to 'Source/cmVisualStudio10TargetGenerator.h')
-rw-r--r-- | Source/cmVisualStudio10TargetGenerator.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Source/cmVisualStudio10TargetGenerator.h b/Source/cmVisualStudio10TargetGenerator.h index 308b9bd..55a850a 100644 --- a/Source/cmVisualStudio10TargetGenerator.h +++ b/Source/cmVisualStudio10TargetGenerator.h @@ -68,6 +68,8 @@ private: std::vector<std::string> const & includes); void WriteRCOptions(std::string const& config, std::vector<std::string> const & includes); + bool ComputeLinkOptions(); + bool ComputeLinkOptions(std::string const& config); void WriteLinkOptions(std::string const& config); void WriteMidlOptions(std::string const& config, std::vector<std::string> const & includes); @@ -95,6 +97,7 @@ private: typedef cmVisualStudioGeneratorOptions Options; typedef std::map<cmStdString, Options*> OptionsMap; OptionsMap ClOptions; + OptionsMap LinkOptions; std::string PathToVcxproj; cmTarget* Target; cmGeneratorTarget* GeneratorTarget; |