Regression in CMake breaking builds

Alexander Neundorf neundorf at kde.org
Sun Sep 15 11:52:18 BST 2013


On Sunday 15 September 2013, Ben Cooksley wrote:
> Hi all,
> 
> It appears that a recent update to CMake on build.kde.org has broken a
> number of KDE projects, resulting in them now failing to build.
> 
> An example can be found here:
> http://build.kde.org/view/FAILED/job/kdevplatform_master/560/consoleText
> 
> The following projects appear to be affected at this time:
> - Calligra
> - KDevPlatform
> - Amarok
> 
> CMake folks, can you please take a look?
> The CMake build is http://build.kde.org/view/All/job/cmake/78/

This is cmake next ?
Does 2.8.12rc3 work ?

It looks like it is related to using imported targets in try_compile():

-- Enabling c++0x support for unordered map
CMake Error at cmTryCompileExec236800853Targets.cmake:96 (add_library):
  add_library cannot create imported target "Qt4::QtGui" because another
  target with the same name already exists.
Call Stack (most recent call first):
  CMakeLists.txt:11 (include)


Alex




More information about the kde-core-devel mailing list