Other pb with cmake
Laurent Montel
montel at kde.org
Thu Mar 16 22:27:21 CET 2006
On Thursday 16 March 2006 19:08, Alexander Neundorf wrote:
> They create the moc files in CMAKE_CURRENT_BINARY_DIR .
> If a source files includes:
> "#include <myname.moc>" automatically a rule for creating this moc file
> will be created.
> This would result in two moc files with the same name in the same
> directory. This doesn't work.
>
> Options:
> -create the moc files in the subdirs where the object file will be located
> This directory is currently not part of the include path, so it probably
> wouldn't be found
I changed today kde macro to create them into own directory.
So it fixed some bugs but it's right include directory is not adding so there
is some compile error.
=> as david said " Ideally we could automate this include path stuff."
For the moment it's not the case. I don't know how to do.
"But wait, won't the .o end up in the same directory, too, currently?"
I didn't see a bug with it.
So I think that there is not a problem.
> -don't use automoc for the duplicate files and moc them extra
> -rename the files so that the moc file names won't conflict
> -anything else ?
>
> Bye
> Alex
More information about the Kde-buildsystem
mailing list