diff options
author | Brad King <brad.king@kitware.com> | 2012-10-26 10:16:45 -0400 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2012-10-26 10:16:45 -0400 |
commit | c65a2ea6a83f274afc52ca6adc457dec069de064 (patch) | |
tree | 88401d4f05fde5264864fab4cfdcaffa2fcb30ea /Source/cmIDEOptions.cxx | |
parent | 259cff94ff81f7b95b7375905fe0e0a292f70dda (diff) | |
download | cmake-c65a2ea6a83f274afc52ca6adc457dec069de064.tar.gz |
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/cmIDEOptions.cxx')
-rw-r--r-- | Source/cmIDEOptions.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmIDEOptions.cxx b/Source/cmIDEOptions.cxx index d9c0e87e95..76a60cfcdf 100644 --- a/Source/cmIDEOptions.cxx +++ b/Source/cmIDEOptions.cxx @@ -177,3 +177,14 @@ void cmIDEOptions::RemoveFlag(const char* flag) { this->FlagMap.erase(flag); } + +//---------------------------------------------------------------------------- +const char* cmIDEOptions::GetFlag(const char* flag) +{ + std::map<cmStdString, cmStdString>::iterator i = this->FlagMap.find(flag); + if(i != this->FlagMap.end()) + { + return i->second.c_str(); + } + return 0; +} |