Hey guys,

Recently I've started porting internal KDevelop libraries to OBJECT libraries.
The CMake code I've written seems to work fine with v2.8.12.2 (what I have on 
my system, locally) but apparently fails with recent CMake-master (which is 
installed on the KDE CI).

The error I get on the CI [1] is:

"""
CMake Internal Error (please report a bug):
  Missing cmGeneratorTarget instance!


CMake Error at /srv/jenkins/install/linux/x86_64/g++/latest-
qt4/kde/kdelibs/inst/share/apps/cmake/modules/KDE4Macros.cmake:1010 
(add_executable):
  Error evaluating generator expression:

    $<TARGET_OBJECTS:kdevclangcodecompletion>

  Objects of target "kdevclangcodecompletion" referenced but no such target
  exists.
Call Stack (most recent call first):
  /srv/jenkins/install/linux/x86_64/g++/latest-
qt4/kde/kdelibs/inst/share/apps/cmake/modules/KDE4Macros.cmake:862 
(kde4_add_executable)
  tests/CMakeLists.txt:24 (kde4_add_unit_test)
"""

The relevant code is here: [2]

I see that there was some discussion wrt this on the cmake ML, [3], but 
actually I lack the CMake foo in order to understand this discussion's 
implications. At any rate, I don't think the above behavior is intended, is 
it?

Greets

[1] http://build.kde.org/view/kdevelop/job/kdev-clang_master/5/console
[2] 
http://quickgit.kde.org/?p=kdev-clang.git&a=tree&hb=22e0c136a252813ff0732eba25bda79d89173682
[3] 
http://public.kitware.com/pipermail/cmake-developers/2014-February/009838.html

-- 
Kevin Funk
-- 

Powered by www.kitware.com

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Kitware offers various services to support the CMake community. For more 
information on each offering, please visit:

CMake Support: http://cmake.org/cmake/help/support.html
CMake Consulting: http://cmake.org/cmake/help/consulting.html
CMake Training Courses: http://cmake.org/cmake/help/training.html

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to