Bug 316910 - cmake error: add_custom_target cannot create target "pofiles"
Summary: cmake error: add_custom_target cannot create target "pofiles"
Status: RESOLVED DUPLICATE of bug 316308
Alias: None
Product: telepathy
Classification: Frameworks and Libraries
Component: common-internals (show other bugs)
Version: 0.5.80
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: Future
Assignee: Telepathy Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-17 14:06 UTC by Lukas Schneiderbauer
Modified: 2013-03-17 14:44 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments
build log (8.31 KB, text/plain)
2013-03-17 14:07 UTC, Lukas Schneiderbauer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Schneiderbauer 2013-03-17 14:06:13 UTC
Building ktp-common-internals fails here because of a cmake-error:
CMake Error at /usr/share/apps/cmake/modules/FindGettext.cmake:232 (ADD_CUSTOM_TARGET):
  add_custom_target cannot create target "pofiles" because another target
  po/ja/CMakeLists.txt:2 (GETTEXT_PROCESS_PO_FILES)


CMake Error at /usr/share/apps/cmake/modules/FindGettext.cmake:232 (ADD_CUSTOM_TARGET):
  add_custom_target cannot create target "pofiles" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory
  "/var/tmp/portage/net-im/ktp-common-internals-0.5.80/work/ktp-common-internals-0.5.80/po/de".
  See documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  po/zh_CN/CMakeLists.txt:2 (GETTEXT_PROCESS_PO_FILES)

Reproducible: Always

Steps to Reproduce:
1. Run cmake on the 0.6 beta source.
2.
3.
Actual Results:  
Configuring fails.

Expected Results:  
Configuring does not fail.

I use gentoo and tried to install it via kde overlay.
The build log follows.
Comment 1 Lukas Schneiderbauer 2013-03-17 14:07:43 UTC
Created attachment 78132 [details]
build log
Comment 2 David Edmundson 2013-03-17 14:08:45 UTC
Could you look at this bug:
https://bugs.kde.org/show_bug.cgi?id=316308

and let me know if adding this line to cmake fixes it.
Comment 3 Lukas Schneiderbauer 2013-03-17 14:41:03 UTC
(In reply to comment #2)
> Could you look at this bug:
> https://bugs.kde.org/show_bug.cgi?id=316308
> 
> and let me know if adding this line to cmake fixes it.
Yes, that fixes it.
Sorry for not finding this bug earlier. :)

From what I read in the other file it should affect all ktp-projects? Only ktp-common-internals's configuring seems to fail without this patch here.

Should I mention the need of this patch in the gentoo community or is already taken care of it?
Comment 4 David Edmundson 2013-03-17 14:44:44 UTC
> From what I read in the other file it should affect all ktp-projects? Only ktp-common-internals's configuring seems to fail without this patch here.

I thought it was all of them, let me check with the reporter of that bug.

It's being taken care of by us for 0.6.0 (due at the end of the month) I don't plan on updating the betas, so if you want to fix the betas in Gentoo you will have to do it within your community.

*** This bug has been marked as a duplicate of bug 316308 ***