On Monday, 11 May 2020 14:52:46 CEST Mihai Dobrescu wrote: > Hello, > > I get errors like these below, when I build plasma-workspace, > plasma-desktop and plasma-vault from the master branch. > > CMake Error at > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:34 (add_library): > add_library cannot create ALIAS target "KF5::SysGuard" because target > "KSysGuard::SysGuard" is IMPORTED. > Call Stack (most recent call first): > > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:37 (add_sysguard_target) > /home/myuser/kde/usr/share/ECM/find-modules/FindKF5.cmake:74 > (find_package) > CMakeLists.txt:55 (find_package) > > > CMake Error at > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:34 (add_library): > add_library cannot create ALIAS target "KF5::ProcessCore" because target > "KSysGuard::ProcessCore" is IMPORTED. > Call Stack (most recent call first): > > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:38 (add_sysguard_target) > /home/myuser/kde/usr/share/ECM/find-modules/FindKF5.cmake:74 > (find_package) > CMakeLists.txt:55 (find_package) > > > CMake Error at > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:34 (add_library): > add_library cannot create ALIAS target "KF5::ProcessUi" because target > "KSysGuard::ProcessUi" is IMPORTED. > Call Stack (most recent call first): > > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:39 (add_sysguard_target) > /home/myuser/kde/usr/share/ECM/find-modules/FindKF5.cmake:74 > (find_package) > CMakeLists.txt:55 (find_package) > > > CMake Error at > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:34 (add_library): > add_library cannot create ALIAS target "KF5::LsofUi" because target > "KSysGuard::LsofUi" is IMPORTED. > Call Stack (most recent call first): > > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:40 (add_sysguard_target) > /home/myuser/kde/usr/share/ECM/find-modules/FindKF5.cmake:74 > (find_package) > CMakeLists.txt:55 (find_package) > > > CMake Error at > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:34 (add_library): > add_library cannot create ALIAS target "KF5::SignalPlotter" because target > "KSysGuard::SignalPlotter" is IMPORTED. > Call Stack (most recent call first): > > /home/myuser/kde/usr/lib/x86_64-linux-gnu/cmake/KF5SysGuard/KF5SysGuardConfi > g.cmake:41 (add_sysguard_target) > /home/myuser/kde/usr/share/ECM/find-modules/FindKF5.cmake:74 > (find_package) > CMakeLists.txt:55 (find_package) > > What is the reason?
tl;dr: Update to today's master, it has been fixed in the meantime. All the KSysGuard targets were moved to the namespace KSysGuard since they are not part of Frameworks. A backward compatibility file was left in place to facilitate the transition to new targets, but I used a CMake 3.11 feature without knowing that Neon, among others, was still using 3.10. This has been corrected in the meantime, the backward compatibility header works with 3.10 and plasma-workspace/desktop have been ported to use the new targets. - Arjen > I've thought the master branch is at least compilable. > > Regards, > Mihai Sorin Dobrescu