Skip to content

Use #cmakedefine01 for all KWIN_BUILD_* macros

Alex Richardson requested to merge arichardson/kwin:fix-kwin-build-macros into master

This ensures that we get a warning if the config header is not included instead of compiling the code as if it was disabled. Interestingly, some checks already used #if KWIN_BUILD_*, so those were generating -Wundef warnings when the feature is disabled. Commit 886173ca assumed that all those features were already 01, so this unbreaks the build if any of the features is disabled.

Fixes: 886173ca ("Reduce ifdefs in Workspace::supportInformation()")

Merge request reports

Loading