diff --git a/Source/cmTarget.cxx b/Source/cmTarget.cxx index 98cb75c81..ef42b38d6 100644 --- a/Source/cmTarget.cxx +++ b/Source/cmTarget.cxx @@ -5919,8 +5919,7 @@ cmTarget::GetCompatibleInterfaces(std::string const& config) const { \ std::vector props; \ cmSystemTools::ExpandListArgument(prop, props); \ - std::copy(props.begin(), props.end(), \ - std::inserter(compat.Props##x, compat.Props##x.begin())); \ + compat.Props##x.insert(props.begin(), props.end()); \ } CM_READ_COMPATIBLE_INTERFACE(BOOL, Bool) CM_READ_COMPATIBLE_INTERFACE(STRING, String)