diff --git Source/cmInstallRuntimeDependencySet.cxx Source/cmInstallRuntimeDependencySet.cxx
index 0cef49a..5f826f3 100644
--- Source/cmInstallRuntimeDependencySet.cxx
+++ Source/cmInstallRuntimeDependencySet.cxx
@@ -57,7 +57,7 @@ const std::set<const cmGeneratorTarget*>& GetTargetDependsClosure(
     targetDepends,
   const cmGeneratorTarget* tgt)
 {
-  auto it = targetDepends.insert({ tgt, {} });
+  auto it = targetDepends.insert({ tgt, std::set<const cmGeneratorTarget*>{} });
   auto& retval = it.first->second;
   if (it.second) {
     auto const& deps = tgt->GetGlobalGenerator()->GetTargetDirectDepends(tgt);
