diff options
author | Brad King <brad.king@kitware.com> | 2009-01-14 14:51:58 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2009-01-14 14:51:58 (GMT) |
commit | e92d99d05c4edf1a7aae5eee4c66432f9e01d04f (patch) | |
tree | 48d5550126470c49a33afeadfdf53c4e5c9f22b3 /Source/cmExtraEclipseCDT4Generator.cxx | |
parent | bb2c08546c8ba53792e6de0be6e77149754025a8 (diff) | |
download | CMake-e92d99d05c4edf1a7aae5eee4c66432f9e01d04f.zip CMake-e92d99d05c4edf1a7aae5eee4c66432f9e01d04f.tar.gz CMake-e92d99d05c4edf1a7aae5eee4c66432f9e01d04f.tar.bz2 |
COMP: Fix const set find for Borland 5.5
The Borland 5.5 compiler's STL set does not define correct signatures
for its find() members, leading to build errors. This works around the
problem.
Diffstat (limited to 'Source/cmExtraEclipseCDT4Generator.cxx')
-rw-r--r-- | Source/cmExtraEclipseCDT4Generator.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/Source/cmExtraEclipseCDT4Generator.cxx b/Source/cmExtraEclipseCDT4Generator.cxx index bdf4edc..fcf5b67 100644 --- a/Source/cmExtraEclipseCDT4Generator.cxx +++ b/Source/cmExtraEclipseCDT4Generator.cxx @@ -648,8 +648,10 @@ void cmExtraEclipseCDT4Generator::CreateCProjectFile() const case cmTarget::GLOBAL_TARGET: { bool insertTarget = true; - if(insertTarget && (this->TargetsToIgnore.find(t->first) != - this->TargetsToIgnore.end())) + if(insertTarget && + (std::set<std::string>::const_iterator( + this->TargetsToIgnore.find(t->first)) != + this->TargetsToIgnore.end())) { insertTarget = false; } |