[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-buildsystem
Subject: CMAKE_MODULE_PATH problem
From: faure () kde ! org (David Faure)
Date: 2006-05-03 16:59:48
Message-ID: 200605031859.48938.faure () kde ! org
[Download RAW message or body]
On Wednesday 03 May 2006 18:51, Alexander Neundorf wrote:
> 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 ?
Definitely. It confused the hell out of me why my changes to kdebase/cmake/modules/FindUSB.cmake
were not being picked up by kdebase.
--
David Faure, faure at kde.org, sponsored by Trolltech to work on KDE,
Konqueror (http://www.konqueror.org), and KOffice (http://www.koffice.org).
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic