[cmake-developers] Problems with CMake-master and OBJECT libraries
Kevin Funk
kfunk at kde.org
Fri Apr 11 10:25:18 EDT 2014
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
More information about the cmake-developers
mailing list