Bug 446200 - Building: Unknown CMake Command
Summary: Building: Unknown CMake Command
Status: RESOLVED NOT A BUG
Alias: None
Product: kwin
Classification: Plasma
Component: general (show other bugs)
Version: git master
Platform: Manjaro Linux
: NOR normal
Target Milestone: ---
Assignee: KWin default assignee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-28 15:28 UTC by personalizedrefrigerator
Modified: 2021-11-28 15:34 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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