title: error LNK1179: invalid or corrupt file: duplicate COMDAT when trying to build as shared lib
body: <p>My project builds fine if I make target library STATIC, but fails if I mark it SHARED or MODULE with an error:</p>
  <blockquote>
  <p>fatal error LNK1179: invalid or corrupt file: duplicate COMDAT
  '??$?0V?$basic_string_view@_WU?$char_traits@_W@std@@@std@@$0A@@path@filesystem@std@@QEAA@AEBV?$basic_string_view@_WU?$char_traits@_W@std@@@2@W4format@012@@Z'</p>
  </blockquote>
  <p>Any ideas what is causing this?</p>
  <p>I'm using C++20 with modules, CMake project with MSVC compiler.</p>