kde4_add_autotest issue (Re: kdesupport/automoc)

Christoph Feck christoph at maxiom.de
Thu Jun 24 00:48:45 CEST 2010


Hi,

since commit r1141941 the following modules fail to build (using CMake 2.8.1):

- 4.4/kdepim
- trunk/koffice
- kdevelop/quanta

The error messages are attached.

After fixing 4.4/kdepim (r1141971) I saw more modules failing, and now I am 
not sure if those should be fixed as well, or if the changes should be 
reverted? Please decide :)

Thanks in advance,
Christoph Feck (kdepepo)
-------------- next part --------------
CMake Error at /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:202 (add_custom_target):
  add_custom_target cannot create target "htmlquotecolorertest_automoc"
  because another target with the same name already exists.  The existing
  target is a custom target created in source directory
  "/local/svn/kde/branches/KDE/4.4/kdepim/messageviewer/tests".  See
  documentation for policy CMP0002 for more details.
Call Stack (most recent call first):
  /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:264 (_add_automoc4_target)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:945 (_automoc4_kde4_pre_target_handling)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:805 (kde4_add_executable)
  kmail/tests/CMakeLists.txt:13 (kde4_add_unit_test)


CMake Error at /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:202 (add_custom_target):
  add_custom_target cannot create target "ProjectTester_automoc" because
  another target with the same name already exists.  The existing target is a
  custom target created in source directory
  "/local/svn/kde/trunk/koffice/kplato/libs/kernel/tests".  See documentation
  for policy CMP0002 for more details.
Call Stack (most recent call first):
  /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:264 (_add_automoc4_target)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:945 (_automoc4_kde4_pre_target_handling)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:805 (kde4_add_executable)
  kplato/plugins/schedulers/rcps/tests/CMakeLists.txt:10 (kde4_add_unit_test)


CMake Error at /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:202 (add_custom_target):
  add_custom_target cannot create target "TestKoColorSpaceRegistry_automoc"
  because another target with the same name already exists.  The existing
  target is a custom target created in source directory
  "/local/svn/kde/trunk/koffice/libs/pigment/tests".  See documentation for
  policy CMP0002 for more details.
Call Stack (most recent call first):
  /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:264 (_add_automoc4_target)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:945 (_automoc4_kde4_pre_target_handling)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:805 (kde4_add_executable)
  plugins/colorengines/lcms/tests/CMakeLists.txt:38 (kde4_add_unit_test)


CMake Error at /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:202 (add_custom_target):
  add_custom_target cannot create target "TestDocumentLayout_automoc" because
  another target with the same name already exists.  The existing target is a
  custom target created in source directory
  "/local/svn/kde/trunk/koffice/kword/part/tests".  See documentation for
  policy CMP0002 for more details.
Call Stack (most recent call first):
  /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:264 (_add_automoc4_target)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:945 (_automoc4_kde4_pre_target_handling)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:805 (kde4_add_executable)
  plugins/textshape/tests/CMakeLists.txt:24 (kde4_add_unit_test)


CMake Error at /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:202 (add_custom_target):
  add_custom_target cannot create target "connectiontest_automoc" because
  another target with the same name already exists.  The existing target is a
  custom target created in source directory
  "/local/git/kdevelop/quanta/debuggers/xdebug".  See documentation for
  policy CMP0002 for more details.
Call Stack (most recent call first):
  /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:264 (_add_automoc4_target)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:945 (_automoc4_kde4_pre_target_handling)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:805 (kde4_add_executable)
  debuggers/crossfire/CMakeLists.txt:54 (kde4_add_unit_test)


CMake Error at /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:202 (add_custom_target):
  add_custom_target cannot create target "duchaintest_automoc" because
  another target with the same name already exists.  The existing target is a
  custom target created in source directory
  "/local/git/kdevelop/quanta/languages/css".  See documentation for policy
  CMP0002 for more details.
Call Stack (most recent call first):
  /local/KDE4/trunk/lib/automoc4/Automoc4Config.cmake:264 (_add_automoc4_target)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:945 (_automoc4_kde4_pre_target_handling)
  /local/KDE4/trunk/share/apps/cmake/modules/KDE4Macros.cmake:805 (kde4_add_executable)
  languages/xml/language/duchain/CMakeLists.txt:65 (kde4_add_unit_test)




More information about the Kde-buildsystem mailing list