From 8e7c207e760495633fdafb0a567f825aa2f57305 Mon Sep 17 00:00:00 2001 From: Stephen Kelly Date: Sat, 15 Sep 2012 09:49:17 +0200 Subject: [PATCH] Use a manual loop to insert into set::set. Some of the dashboard machines do not have the algorithm insert. --- Source/cmTarget.cxx | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index a7c9c3afb1..6219da654a 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -1652,7 +1652,15 @@ cmTargetTraceDependencies const cmCompiledGeneratorExpression &cge = ge.Parse(*cli); cge.Evaluate(this->Makefile, 0, true); std::set geTargets = cge.GetTargets(); - targets.insert(geTargets.begin(), geTargets.end()); + // A handful of machines on the dashboard don't have the + // iterator overload below, so we have to do it manually. +// targets.insert(geTargets.begin(), geTargets.end()); + std::set::const_iterator it = geTargets.begin(); + const std::set::const_iterator end = geTargets.end(); + for ( ; it != end; ++it) + { + targets.insert(*it); + } } }