Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 558430

Summary: libkcddb-15.08.0:4, libkcompactdisc-15.08.0, audiocd-kio-15.08.0 fails to build with cmake 3.2.2: "No cmake_minimum_required command is present."
Product: Gentoo Linux Reporter: J.Borme <gentoo_bugs.nu_q5v>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal CC: gentoo_bugs.nu_q5v
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: output of emerge --info
Build log

Description J.Borme 2015-08-22 15:59:48 UTC
The three mentioned packages fail to build with cmake 3.2.2 (stable) as they are missing a parameter in their CMakeLists.txt. Downgrading to cmake 3.0.2 is possible to build. 

Adding one line in the CMakeLists.txt as the error log is asking should solve the issue. At least it did the trick in other software showing the same problem, as illustrated at https://github.com/ryanmelt/qtbindings/issues/111

>  /usr/share/cmake/Modules/FindKDE4.cmake:108 (find_package)
>  CMakeLists.txt:5 (find_package)
>
>CMake Warning (dev) in CMakeLists.txt:
>  No cmake_minimum_required command is present.  A line of code such as
>
>    cmake_minimum_required(VERSION 3.2)
>
>  should be added at the top of the file.  The version specified may be lower
>  if you wish to support older CMake versions for this project.  For more
>  information run "cmake --help-policy CMP0000".
>This warning is for project developers.  Use -Wno-dev to suppress it.
>
>-- Configuring incomplete, errors occurred!
Comment 1 Michael Palimaka (kensington) gentoo-dev 2015-08-22 16:00:58 UTC

*** This bug has been marked as a duplicate of bug 558236 ***
Comment 2 J.Borme 2015-08-22 16:01:32 UTC
Created attachment 409880 [details]
output of emerge --info
Comment 3 J.Borme 2015-08-22 16:02:43 UTC
Created attachment 409882 [details]
Build log