using check_cxx_source_runs

Alexander Neundorf neundorf at kde.org
Thu Mar 12 23:06:47 CET 2009


On Thursday 12 March 2009, Leo Franchi wrote:
...
> > Please replace the CheckCXXSourceRuns.cmake which is installed by
> > the cmake on
> > your system with the one attached to this email. It adds some basic
> > handling
> > for using imported targets with check_cxx_source_runs().
> > It's not perfect yet, but it works here for me.
> > Please let me know if it works for you, then we can add it to
> > kdelibs/cmake/modules/.
> > A real fix for this should go into cmake itself.
>
> Yeah, this works great. Actually, since the whole link interface stuff
> makes it resolve the dependencies (qtcore is linked twice), can we
> just specify KDE4_KDEUI_LIBS and KDE4_KDECORE_LIBS and let it do the
> rest?

No. If you are using QtScript, you should also list it as a library to link to 
(beside that, this is the point where that fix is not perfect yet)

Alex


More information about the Kde-buildsystem mailing list