overriding CMAKE_MODULE_PATH

2010-08-15 Thread Yury G. Kudryashov
Hi! Many (all?) KDE modules have the following string in the beginning of CMakeLists.txt: set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) What do you think about replacing this string with the following? set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules ${CMAKE_MODULE_PATH})

Re: overriding CMAKE_MODULE_PATH

2010-08-15 Thread Andreas Pakulat
On 16.08.10 00:09:41, Yury G. Kudryashov wrote: Alexander Neundorf wrote: On Sunday 15 August 2010, Yury G. Kudryashov wrote: Many (all?) KDE modules have the following string in the beginning of CMakeLists.txt: set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules) What do you

Re: overriding CMAKE_MODULE_PATH

2010-08-15 Thread Andreas Pakulat
On 16.08.10 00:59:20, Yury G. Kudryashov wrote: Andreas Pakulat wrote: On 16.08.10 00:09:41, Yury G. Kudryashov wrote: Alexander Neundorf wrote: On Sunday 15 August 2010, Yury G. Kudryashov wrote: Many (all?) KDE modules have the following string in the beginning of CMakeLists.txt:

Re: overriding CMAKE_MODULE_PATH

2010-08-15 Thread Michael Jansen
Then either specify CMAKE_PREFIX_PATH for fix the FindKTorrent.cmake module. Cmake looks for FindKTorrent in CMAKE_MODULE_PATH, not CMAKE_PREFIX_PATH. Right. So where is the problem? FindKTorrent.cmake should either be part of cmake itself, part of kdelibs or be part of kdenetwork. Anything

Re: overriding CMAKE_MODULE_PATH

2010-08-15 Thread Andreas Pakulat
On 16.08.10 01:23:50, Michael Jansen wrote: Then either specify CMAKE_PREFIX_PATH for fix the FindKTorrent.cmake module. Cmake looks for FindKTorrent in CMAKE_MODULE_PATH, not CMAKE_PREFIX_PATH. Right. So where is the problem? FindKTorrent.cmake should either be part of cmake itself,