Regression in CMake breaking builds

Ben Cooksley bcooksley at kde.org
Sun Sep 15 11:53:33 BST 2013


On Sun, Sep 15, 2013 at 10:52 PM, Alexander Neundorf <neundorf at kde.org> wrote:
> 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 ?

Yes, it is cmake next.
I've no idea if 2.8.12rc3 works, but the previously built revision did
work - that was 719bc22a69cccaba7a6d788cb98b68925e798f76.

>
> 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)

I see. Does that mean it should be affecting all builds, as it only
seems to be affecting some builds at the moment?


>
>
> Alex

Thanks,
Ben




More information about the kde-core-devel mailing list