automoc4 from kdesupport now supported for building KDE

David Faure faure at kde.org
Tue Jun 3 21:02:50 CEST 2008


> From "cmake --help-command find_library":
> If NO_DEFAULT_PATH is specified, then no additional paths are added to the search.

This is in fact the reason why now kdelibs can't find phonon.

   find_library(PHONON_LIBRARY NAMES phonon PATHS ${KDE4_LIB_INSTALL_DIR} ${KDE4_LIB_DIR} ${CMAKE_SYSTEM_LIBRARY_PATH} ${QT_LIBRARY_DIR} ${LIB_INSTALL_DIR} NO_DEFAULT_PATH)

So -DCMAKE_PREFIX_PATH:PATH=/d/kde/inst/kdesupport_trunk;/d/kde/inst/phonon (correct syntax, right?)
doesn't work, because of the NO_DEFAULT_PATH. The reason why use NO_DEFAULT_PATH almost everywhere
is simple: without it, libs in /usr/lib are preferred over those in the PATHS specified to find_library.

Is there a way to get "check those paths first, then fallback to the default paths" behavior, without duplicating
all the default paths in the find_library call?

-- 
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).


More information about the Kde-buildsystem mailing list