[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#801790: kde4libs: add_custom_target cannot create target "pofiles" because another target with the same name already exists



On Thu, 15 Oct 2015 00:09:46 +0800 YunQiang Su <wzssyqa@gmail.com> wrote:
> Package: src:kde4libs
> Version: 4:4.14.12-2
> Servirty: serious
>
> When build:  skanlite, partitionmanager, k3b, smb4k
> etc packages, we met a problem:
>
> -- Not installing plasmoid (-DINSTALL_PLASMOID=true to enable)
> -- Not installing core header files (-DINSTALL_HEADER_FILES=true to enable)
> CMake Error at /usr/share/kde4/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 "/«PKGBUILDDIR»/po/bg".  See
>   documentation for policy CMP0002 for more details.
> Call Stack (most recent call first):
>   po/bs/CMakeLists.txt:2 (GETTEXT_PROCESS_PO_FILES)

kmidimon has a similar problem. I don't know whether they are due to
same reason.

CMake Warning (dev) at /usr/lib/automoc4/Automoc4Config.cmake:179
(get_directory_property):
  Policy CMP0059 is not set: Do no treat DEFINITIONS as a built-in directory
  property.  Run "cmake --help-policy CMP0059" for policy details.  Use the
  cmake_policy command to set the policy and suppress this warning.
Call Stack (most recent call first):
  /usr/lib/automoc4/Automoc4Config.cmake:243 (_add_automoc4_target)
  /usr/share/kde4/apps/cmake/modules/KDE4Macros.cmake:1021
(_automoc4_kde4_pre_target_handling)
  src/CMakeLists.txt:68 (KDE4_ADD_EXECUTABLE)
This warning is for project developers.  Use -Wno-dev to suppress it.

CMake Error at CMakeLists.txt:135 (ADD_CUSTOM_TARGET):
  add_custom_target cannot create target "uninstall" because another target
  with the same name already exists.  The existing target is a custom target
  created in source directory "/build/kmidimon-0.7.5".  See documentation for
  policy CMP0002 for more details.



>
>
>
> --
> YunQiang Su
>
>


Reply to: