Summary: | po files do not build due to cmake error - FindGettext.cmake bug | ||
---|---|---|---|
Product: | [Developer tools] buildsystem | Reporter: | George Kiagiadakis <mail> |
Component: | KDE4 (cmake) | Assignee: | Alexander Neundorf <neundorf> |
Status: | RESOLVED UPSTREAM | ||
Severity: | normal | CC: | alinm.elena, d.cermak, mklapetek, rdieter, rohan, simonandric5 |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Mageia RPMs | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | First try at fixing the multiple targets problem |
Description
George Kiagiadakis
2012-02-01 10:06:56 UTC
Git commit eaf09e1242408ac8652ba3ffd1d698326e4b2360 by Rohan Garg. Committed on 07/02/2012 at 19:49. Pushed by garg into branch 'master'. Do not use CMake 2.8 just yet CMake 2.8 has some scope issues which cause the pofile target to interfere while building translations in the tarball releases. Not requiring CMake 2.8 fixes the build issue. Related: bug 292593 M +0 -2 CMakeLists.txt http://commits.kde.org/telepathy-contact-applet/eaf09e1242408ac8652ba3ffd1d698326e4b2360 Reopening, this is not a proper fix. This affects all applications that are using cmake_minimum_required(VERSION 2.8) together with FindGettext.cmake Git commit bea0030301dde993d2990571ec559bc9f1ca48bf by Rohan Garg. Committed on 07/02/2012 at 19:49. Pushed by garg into branch 'kde-telepathy-0.3'. Do not use CMake 2.8 just yet CMake 2.8 has some scope issues which cause the pofile target to interfere while building translations in the tarball releases. Not requiring CMake 2.8 fixes the build issue. Related: bug 292593 M +0 -2 CMakeLists.txt http://commits.kde.org/telepathy-contact-applet/bea0030301dde993d2990571ec559bc9f1ca48bf Reopening because of same reasons This is policy CMP0002 . FindKDE4Internal.cmake sets it to OLD, which allows duplicate target names. If somebody does afterwards a cmake_minimum_required(VERSION 2.8) this policy is set to as it is in 2.8, i.e. NEW. What scope issues do you mean ? I am not aware of any bugs in cmake related to this. If you think there is a bug in cmake, please report it in the cmake bu g tracker: http://public.kitware.com/Bug/ Created attachment 68732 [details]
First try at fixing the multiple targets problem
This version of FindGettext.cmake should fix the problem with the multiple targets with the same name.
Please give it a try.
Can you please give the attached file a try ? Thanks Alex Sorry, I noticed the patch the other day but then forgot about it. I just tested it and it seems to be working properly, without doing any other modification to the previously failing package. Thanks for the fix. Should this report be closed now ? Yep |