KDE/kdelibs/cmake/modules
Alexander Neundorf
neundorf at kde.org
Sun Sep 6 15:42:42 CEST 2009
On Sunday 06 September 2009, Dario Freddi wrote:
> This is getting ridicolous. Following snippet in FindPolkitQt.cmake:
>
> find_path( POLKITQT_INCLUDE_DIR
> NAMES polkit-qt/auth.h
> PATH_SUFFIXES PolicyKit
> )
>
> find_path( p1
> NAMES polkit-qt/auth.h
> PATH_SUFFIXES PolicyKit
> )
>
> find_library( POLKITQT_CORE_LIBRARY
> NAMES polkit-qt-core
> HINTS ${PC_POLKITQT_LIBDIR}
> )
> find_library( POLKITQT_GUI_LIBRARY
> NAMES polkit-qt-gui
> HINTS ${PC_POLKITQT_LIBDIR}
> )
> find_library( POLKITQT_LIBRARIES
> NAMES polkit-qt-gui polkit-qt-core
> HINTS ${PC_POLKITQT_LIBDIR}
> )
>
> message(${POLKITQT_INCLUDE_DIR})
> message(${p1})
>
> -----
>
> POLKITQT_INCLUDE_DIR is /usr/include
> p1 is /usr/include/PolicyKit
>
> And this time I'm totally confused.
POLKITQT_INCLUDE_DIR is already in the cache I'd say.
The FIND_XXX() commands only actually do something if the result variable has
not yet a valid value (i.e. is still empty or contains "NOTFOUND")
Alex
More information about the Kde-buildsystem
mailing list