I had a kwayland-5.3.90 (I think) version installed. cmake (in powerdevil) detects this (posts version info) and generates Makefile. Powerdevil fails to build because a newer version of KWayland has some new files, which powerdevil requires. I rebuilt KWayland from git/master and then Powerdevil built without issue. Reproducible: Always
the master version of powerdevil depends on the master version of kwayland. As both are part of plasma-workspace this is fine and not an issue. In fact it's quite normal for workspace modules to depend on other workspace modules from master.