Did you read the recent blog post https://www.kitware.com/import-cmake-the-experiment-is-over/, about C++ module usage?