On Saturday 01 September 2007 8:26:59 am Allen Winter wrote: > On Friday 31 August 2007 7:01:20 pm Alexander Neundorf wrote: > > On Friday 31 August 2007 15:50, Allen Winter wrote: > > > Howdy, > > > > > > On my system, > > > % pkg-config glib-2.0 --cflags > > > -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include > > > > > > but FindGLIB2.cmake only sets > > > GLIB2_INCLUDE_DIR:PATH=/usr/include/glib-2.0 > > > > > > So how to get the missing /usr/lib/glib-2.0/include into the > > > GLIB2_INCLUDE_DIR? > > > > Fixed and committed, the additional include directory is right now > > optional, > > i.e. it doesn't fail if it is not found: > > > Still not working for me. > > % grep GLIB2 CMakeCache.txt > GLIB2_INTERNAL_INCLUDE_DIR:PATH=GLIB2_INTERNAL_INCLUDE_DIR-NOTFOUND > GLIB2_LIBRARIES:FILEPATH=/lib/libglib-2.0.so > GLIB2_MAIN_INCLUDE_DIR:PATH=/usr/include/glib-2.0 > //Search for GLIB2 package > WITH_GLIB2:BOOL=ON > //Advanced flag for variable: GLIB2_LIBRARIES > GLIB2_LIBRARIES-ADVANCED:INTERNAL=1 >
Seems to be because Alex is using /lib from GLIB2_LIBRARIES to build the path to search for glibconfig.h. When we need to be searching in /usr/lib. This is actually a nightmare. The more I look at it. Shouldn't we be using 'pkg-config--cflags-only-I' to find a list of includes to search in the PkgConfig macro? I spent at least an hour trying to make this work. I'm ready to give up. -Allen _______________________________________________ Kde-buildsystem mailing list [email protected] https://mail.kde.org/mailman/listinfo/kde-buildsystem
