On Arch linux (PySide2 version 5.13.2), the variables PYSIDE_LIBRARY and PYSIDE_INCLUDE_DIR are not set, which leads to build failures like ros-visualization/qt_gui_core#142.
Setting PYSIDE_INCLUDE_DIR as CMake argument is a workaround, but not a clean solution.
A proper fix could look like FreeCAD/FreeCAD@3939e45.