diff options
author | Brad King <brad.king@kitware.com> | 2005-08-17 17:23:00 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2005-08-17 17:23:00 (GMT) |
commit | 2a5fec6eda394f6f967a0d170e8e8ebda8f7a41a (patch) | |
tree | c09c74eda901a07e93629b6343944da9f104bac4 /Source/cmLocalUnixMakefileGenerator3.cxx | |
parent | 1774d306ee701be0e3257d3126fc437380edece4 (diff) | |
download | CMake-2a5fec6eda394f6f967a0d170e8e8ebda8f7a41a.zip CMake-2a5fec6eda394f6f967a0d170e8e8ebda8f7a41a.tar.gz CMake-2a5fec6eda394f6f967a0d170e8e8ebda8f7a41a.tar.bz2 |
COMP: Cannot use first/last insertion constructor of std::set because it is not available on all platforms.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r-- | Source/cmLocalUnixMakefileGenerator3.cxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx index f688549..5fbf5fe 100644 --- a/Source/cmLocalUnixMakefileGenerator3.cxx +++ b/Source/cmLocalUnixMakefileGenerator3.cxx @@ -2736,8 +2736,12 @@ cmLocalUnixMakefileGenerator3 } // Sort for efficient lookup. - std::set<cmStdString> generatedFiles(generatedFilesVec.begin(), - generatedFilesVec.end()); + std::set<cmStdString> generatedFiles; + for(std::vector<std::string>::iterator gfi = generatedFilesVec.begin(); + gfi != generatedFilesVec.end(); ++gfi) + { + generatedFiles.insert(*gfi); + } // for each language we need to scan, scan it const char *langStr = mf->GetSafeDefinition("CMAKE_DEPENDS_LANGUAGES"); |