Bug 384258

Summary: kmymoney build fails with cmake 3.9
Product: [Applications] kmymoney Reporter: Ralf Habacker <ralf.habacker>
Component: buildsystemAssignee: KMyMoney Devel Mailing List <kmymoney-devel>
Status: RESOLVED FIXED    
Severity: normal CC: lukasz.wojnilowicz
Priority: NOR    
Version: git (master)   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In: 4.8.1
Attachments: full log

Description Ralf Habacker 2017-09-01 09:26:08 UTC
Created attachment 107638 [details]
full log

Building kmymoney from git master branch with cmake 3.9 fails with the following error:

[  116s] CMake Error: The inter-target dependency graph contains the following strongly connected component (cycle):
[  116s]   "onlinetask_interfaces" of type STATIC_LIBRARY
[  116s]     depends on "onlinetask_unavailabletask" (weak)
[  116s]   "onlinetask_unavailabletask" of type STATIC_LIBRARY
[  116s]     depends on "onlinetask_interfaces" (weak)
[  116s]     depends on "onlinetask_unavailabletask_autogen" (strong)
[  116s]   "onlinetask_unavailabletask_autogen" of type UTILITY
[  116s]     depends on "onlinetask_interfaces" (strong)
[  116s] At least one of these targets is not a STATIC_LIBRARY.  Cyclic dependencies are allowed only among static libraries.
[  116s] -- Build files have been written to: /home/abuild/rpmbuild/BUILD/kmymoney-4.99.40.fb8c80ff/build
[  116s] error: Bad exit status from /var/tmp/rpm-tmp.Xo4GqZ (%build)
[  116s]
Comment 1 NSLW 2017-09-01 12:47:37 UTC
You're not at the latest commit.
Comment 2 Ralf Habacker 2017-09-03 13:02:45 UTC
Git commit 79176db9fa18a7486f4c1194ea3377eb6637a023 by Ralf Habacker.
Committed on 03/09/2017 at 13:01.
Pushed by habacker into branch '4.8'.

Fix compilation with CMake 3.9

Signed-off-by: Łukasz Wojniłowicz <lukasz.wojnilowicz@gmail.com>
(cherry picked from commit 747762d138682be9abbe7307680013cd643da8cb)

# Conflicts:
#	kmymoney/mymoney/CMakeLists.txt
#	kmymoney/mymoney/storage/tests/CMakeLists.txt
#	kmymoney/mymoney/tests/CMakeLists.txt

FIXED-IN:4.8.1

M  +2    -1    kmymoney/mymoney/CMakeLists.txt

https://commits.kde.org/kmymoney/79176db9fa18a7486f4c1194ea3377eb6637a023