Bug 446200

Summary: Building: Unknown CMake Command
Product: [Plasma] kwin Reporter: personalizedrefrigerator
Component: generalAssignee: KWin default assignee <kwin-bugs-null>
Status: RESOLVED NOT A BUG    
Severity: normal CC: nicolas.fella
Priority: NOR    
Version First Reported In: git master   
Target Milestone: ---   
Platform: Manjaro   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description personalizedrefrigerator 2021-11-28 15:28:32 UTC
SUMMARY

When building kwin from source, CMake is unable to find the `kcoreaddons_target_static_plugins` command.

<pre>
$ mkdir build; cd build
$ cmake ..
-- Found KF5: success (found suitable version "5.88.0", minimum required is "5.88") found components: Config ConfigWidgets CoreAddons Crash GlobalAccel I18n IconThemes IdleTime Notifications Package Plasma WidgetsAddons WindowSystem 
-- Found KF5: success (found suitable version "5.88.0", minimum required is "5.88") found components: Completion Declarative KCMUtils NewStuff Service TextWidgets XmlGui 
-- Found Wayland: /usr/lib/libwayland-client.so;/usr/lib/libwayland-server.so;/usr/lib/libwayland-cursor.so;/usr/lib/libwayland-egl.so (found suitable version "1.19.0", minimum required is "1.18")  
-- Wayland: Egl requires Client
-- Found Wayland: /usr/lib/libwayland-client.so;/usr/lib/libwayland-server.so;/usr/lib/libwayland-cursor.so;/usr/lib/libwayland-egl.so (found suitable version "1.19.0", minimum required is "1.2") found components: Egl 
-- Warning: Property DESCRIPTION for package UDev already set to "API for enumerating and introspecting local devices (part of systemd)", overriding it with "Linux device library."
CMake Error at src/effects/CMakeLists.txt:173 (kcoreaddons_target_static_plugins):
  Unknown CMake command "kcoreaddons_target_static_plugins".


-- Configuring incomplete, errors occurred!
See also "/home/hematite/Documents/Build/kwin/build/CMakeFiles/CMakeOutput.log".
See also "/home/hematite/Documents/Build/kwin/build/CMakeFiles/CMakeError.log".
</pre>


STEPS TO REPRODUCE
1. Clone `kwin`
2. Configure the project using `cmake`

OBSERVED RESULT

Unable to configure.


EXPECTED RESULT

Should be able to configure.

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: 5.23.3
KDE Plasma Version: 5.23.3
KDE Frameworks Version: 5.88.0
Qt Version: 5.15.2

ADDITIONAL INFORMATION

Similar issue filed elsewhere: https://gitlab.com/kwinft/kwinft/-/issues/216
Comment 1 Nicolas Fella 2021-11-28 15:34:38 UTC
You need the master version of kcoreaddons