CMAKE_MODULE_PATH problem

Alexander Neundorf neundorf at kde.org
Wed May 3 18:51:53 CEST 2006


On Wednesday 03 May 2006 18:11, Brad King wrote:
> David Faure wrote:
> > The top of kdebase/CMakeLists.txt says:
> >
> > # where to look first for cmake modules, before ${CMAKE_ROOT}/Modules/ is
> > checked set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
> >
> > but still, the FindUSB.cmake in kdebase/cmake/modules/ isn't used, the
> > one in <install_prefix>/share/apps/cmake/modules/ is used.
> >
> > Has something changed in the finding of cmake modules? Or maybe I didn't
> > notice this problem before...
>
> I bet it loads FindKDE4 after setting this, and that module has this line:
>
> SET(CMAKE_MODULE_PATH  ${KDE4_DATA_DIR}/cmake/modules ${CMAKE_MODULE_PATH})
>
> Therefore the installed modules come first in the path.

Yes, exactly.
So the reverse order would be better ?

Bye
Alex
-- 
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org                - http://www.kde.org
      alex AT neundorf.net               - http://www.neundorf.net


More information about the Kde-buildsystem mailing list