summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorEric NOULARD <eric.noulard@gmail.com>2012-02-18 23:01:39 (GMT)
committerEric NOULARD <eric.noulard@gmail.com>2012-02-18 23:01:39 (GMT)
commit9a8103e929de7569fd2e5459a6676dff64d88892 (patch)
treee1655f952f1d438d2e0884912a4667681c21bd1b /Source
parent4da2223ab768e44b7ef6e789ab193ea54c9b5e27 (diff)
downloadCMake-9a8103e929de7569fd2e5459a6676dff64d88892.zip
CMake-9a8103e929de7569fd2e5459a6676dff64d88892.tar.gz
CMake-9a8103e929de7569fd2e5459a6676dff64d88892.tar.bz2
Try to fix compile error on Win32-vs70
Diffstat (limited to 'Source')
-rw-r--r--Source/cmDocumentation.cxx7
1 files changed, 4 insertions, 3 deletions
diff --git a/Source/cmDocumentation.cxx b/Source/cmDocumentation.cxx
index 1fb8ab6..904a157 100644
--- a/Source/cmDocumentation.cxx
+++ b/Source/cmDocumentation.cxx
@@ -16,6 +16,7 @@
#include <cmsys/Directory.hxx>
#include <cmsys/Glob.hxx>
+#include <algorithm>
//----------------------------------------------------------------------------
static const char *cmDocumentationStandardOptions[][3] =
@@ -746,9 +747,9 @@ void cmDocumentation::addCPackStandardDocSections()
void cmDocumentation::addAutomaticVariableSections(const std::string& section)
{
std::vector<std::string>::iterator it;
- it = find(this->VariableSections.begin(),
- this->VariableSections.end(),
- section);
+ it = std::find(this->VariableSections.begin(),
+ this->VariableSections.end(),
+ section);
/* if the section does not exist then add it */
if (it==this->VariableSections.end())
{