summaryrefslogtreecommitdiffstats
path: root/Source/cmLocalUnixMakefileGenerator3.cxx
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-09-22 18:06:33 (GMT)
committerBrad King <brad.king@kitware.com>2017-09-23 10:49:48 (GMT)
commit44d3a76d4af3aebcb9bcb15fc003010fd0ae1d76 (patch)
tree5f85790d967d8a08c7d37437e23c12251b6789ee /Source/cmLocalUnixMakefileGenerator3.cxx
parent4609aaf513ffd6f253ec7c8a8bca6bb93d7eede5 (diff)
downloadCMake-44d3a76d4af3aebcb9bcb15fc003010fd0ae1d76.zip
CMake-44d3a76d4af3aebcb9bcb15fc003010fd0ae1d76.tar.gz
CMake-44d3a76d4af3aebcb9bcb15fc003010fd0ae1d76.tar.bz2
Avoid using std::bind1st that is removed in C++17
Use a lambda instead now that we require C++11.
Diffstat (limited to 'Source/cmLocalUnixMakefileGenerator3.cxx')
-rw-r--r--Source/cmLocalUnixMakefileGenerator3.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/Source/cmLocalUnixMakefileGenerator3.cxx b/Source/cmLocalUnixMakefileGenerator3.cxx
index df02f84..50ed0ed 100644
--- a/Source/cmLocalUnixMakefileGenerator3.cxx
+++ b/Source/cmLocalUnixMakefileGenerator3.cxx
@@ -5,7 +5,6 @@
#include "cmsys/FStream.hxx"
#include "cmsys/Terminal.h"
#include <algorithm>
-#include <functional>
#include <sstream>
#include <stdio.h>
#include <utility>
@@ -2073,7 +2072,7 @@ void cmLocalUnixMakefileGenerator3::CreateCDCommand(
std::string outputForExisting = this->ConvertToOutputForExisting(tgtDir);
std::string prefix = cd_cmd + outputForExisting + " && ";
std::transform(commands.begin(), commands.end(), commands.begin(),
- std::bind1st(std::plus<std::string>(), prefix));
+ [&prefix](std::string const& s) { return prefix + s; });
}
}