Building frameworks-kdesu should not check for or use X11 on OS X. Commit 5237dff fixed a problem with the use of #defines after X11 detection, but on OS X the build should be completely skipping X11 linkage. The X11 check in CMakeLists.txt should be behind "if (NOT APPLE)". Reproducible: Always
Thank you for the bug report. As this report hasn't seen any changes in 5 years or more, we ask if you can please confirm that the issue still persists. If this bug is no longer persisting or relevant please change the status to resolved.
Adding the x11-only keyword