How to set SYSTEM property to included directories coming from AUTOMOC ?

The problem is probably due to the fact I use the VS 2017 toolset with the VS 2022 generator, and the VS option (/external) matching to the CMake SYSTEM option appears only in VS 2019 16.10…