cmake doesn't generate .moc files anymore

Friedrich W. H. Kossebau Friedrich.W.H at kossebau.de
Tue Aug 15 15:28:23 BST 2006


Hi Tobias,

Am Dienstag, 15. August 2006 15:52, schrieb Tobias Koenig:
> Hi,
>
> I just upgraded from cmake 2.4.1 to 2.4.3 and now .moc files are not
> generated automatically any longer.

Wait, I have seen this recently... ;)

> It doesn't help to 'touch CMakeList.txt' as I did with the old cmake
> version. I know other developer have the same issue but have not
> mentioned it here yet.

So for those who did not follow on kde-buildsystem:
Please update kdepimlibs/CMakeLists.txt, it had a troublesome macro call 
included (using 1 as variable*) which in the end caused cmake to evaluate at 
least some AND conditions always to FALSE.

kdelibs/kimgio/CMakeLists.txt had the same problem, so update it, too.

*
The "call" was
	macro_bool_to_01(LDAP_FOUND HAVE_LDAP 1)
but should be
	macro_bool_to_01(LDAP_FOUND HAVE_LDAP)

$ cat kdelibs/cmake/modules/MacroBoolTo01.cmake
# MACRO_BOOL_TO_01( VAR RESULT0 ... RESULTN )
# This macro evaluates its first argument
# and sets all the given vaiables either to 0 or 1
# depending on the value of the first one
...
So passing 1 is definitly wrong.

Did the updated CMakeList.txt solve your problem?

Friedrich




More information about the kde-core-devel mailing list