Bug 450177

Summary: Unknown CMake command "ecm_add_qtwayland_server_protocol".
Product: [Frameworks and Libraries] kwayland Reporter: Ilya Fedin <fedin-ilja2010>
Component: serverAssignee: Martin Flöser <mgraesslin>
Status: REPORTED ---    
Severity: normal CC: kwin-bugs-null
Priority: NOR    
Version First Reported In: 5.91.0   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Ilya Fedin 2022-02-13 20:57:49 UTC
SUMMARY
It seems the server library uses ecm_add_qtwayland_server_protocol despite QtWaylandScanner package is not used


STEPS TO REPRODUCE
1. Try to build kwayland with BUILD_WITH_QT6=ON

OBSERVED RESULT
The error from the title

EXPECTED RESULT
No errors

SOFTWARE/OS VERSIONS
Windows: 
macOS: 
Linux/KDE Plasma: CentOS 7 in docker
(available in About System)
KDE Plasma Version: None
KDE Frameworks Version: 5.91.0
Qt Version: 6.2.2

ADDITIONAL INFORMATION
I don't need server library, it's a pity there's no way to build only the client library
Comment 1 Ilya Fedin 2022-02-13 21:23:23 UTC
Oh, I see it's possible to disable server library with EXCLUDE_DEPRECATED_BEFORE_AND_AT=5.91.0 now