There are some things that could be improved in the Cmake code
- CMake offers support to figure out if a compiler needs to link std::filesystem as a separate library. use that in doing so conditionally.
- Ctest should ensure that a Python test and its equivalent C++ test never run in parallel, otherwise they overwrite each other's output files, leading to spurious failures. Alternatively, the two tests could write to different output directories.
Diff: