Bug 386946 - build fails when building in-source with release tarball
Summary: build fails when building in-source with release tarball
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 5.2.0
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-15 14:12 UTC by Sven Brauch
Modified: 2017-11-16 00:03 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In: 5.2.1


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sven Brauch 2017-11-15 14:12:00 UTC
We need to fix this for the next release: tarme.rb adds another ki18n_install(po) which fails when building in-source. We already to ki18n_install(${CMAKE_CURRENT_BINARY_DIR}/po) which is apparently redundand with this. I think changing what we have to ki18n_install(po) should fix it, but that needs to be tested.
Comment 1 Kevin Funk 2017-11-15 23:50:54 UTC
FWIW, the error is:

CMake Error at /usr/lib/x86_64-linux-gnu/cmake/KF5I18n/KF5I18NMacros.cmake:106 (add_custom_target):
  add_custom_target cannot create target
  "pofiles-87081f8658e1165a0eb2e837919d3d28" because another target with the
  same name already exists.  The existing target is a custom target created
  in source directory "/home/kfunk/Downloads/kdevelop-5.2.0".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  CMakeLists.txt:168 (ki18n_install)
Comment 2 Sven Brauch 2017-11-15 23:58:08 UTC
I'll fix this tomorrow or so.
Comment 3 Kevin Funk 2017-11-16 00:03:54 UTC
Git commit 021cac878711a768735a336f7ff1784fd318a1b3 by Kevin Funk.
Committed on 16/11/2017 at 00:00.
Pushed by kfunk into branch '5.2'.

Fix in-source build of release tarball

With this change, .mo files are still installed (after one did `make
fetch-translations`)
FIXED-IN: 5.2.1

M  +1    -1    CMakeLists.txt

https://commits.kde.org/kdevelop/021cac878711a768735a336f7ff1784fd318a1b3