KDE/kdelibs/cmake/modules

Dario Freddi drf54321 at gmail.com
Sun Sep 6 15:41:03 CEST 2009


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.

In data domenica 06 settembre 2009 15:26:55, Alexander Neundorf ha scritto:
: > On Sunday 06 September 2009, Dario Freddi wrote:
> > P.S.: find_path( POLKITQT_INCLUDE_DIR
> >     NAMES polkit-qt/auth.h
> >     PATH_SUFFIXES PolicyKit
> >     HINTS ${PC_POLKITQT_INCLUDEDIR}
> > )
> >
> > Still does not work. I'm really going out of my mind here, and starting
> > to think that maybe cmake has some issues with mixed case paths. Quick
> > and dirty solution: leave the code as it is in cmake and change the
> > includes in kauth headers from "polkit-qt/*.h" to
> > "PolicyKit/polkit-qt/*.h". Since polkit-qt is used by Kauth only that
> > would work out.
> 
> We have to get that working.
> Have a look at the attached file.
> It searches for a header in a similar path,
>  /usr/include/GL/internal.glcore.h. This is what I get here:
> $ /opt/cmake-2.6.2-Linux-i386/bin/cmake ..
> -- p1: -/usr/include/GL/internal-
> -- p2: -/usr/include/GL-
> -- p3: -/usr/include-
> -- Configuring done
> -- Generating done
> -- Build files have been written
> to: /home/alex/src/CMake/tests/findpathtest/b262
> $
> 
> This should work the same way on your system. Does it ?
> And it should work the same way for polkit-qt if you just replace the
>  filename and directories (no need for pkg-config). What does it give ?
> 
> Alex
> 

-- 
-------------------

Dario Freddi
KDE Developer
GPG Key Signature: 511A9A3B
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
Url : http://mail.kde.org/pipermail/kde-buildsystem/attachments/20090906/fba48ff8/attachment-0001.sig 


More information about the Kde-buildsystem mailing list