Setting CMAKE_MODULES_PATH

Yury G. Kudryashov urkud at ya.ru
Wed Jan 12 10:40:45 CET 2011


Akarsh Simha wrote:

> I have a question regarding CMAKE_MODULES_PATH.
> 
> So I tried exporting CMAKE_MODULE_PATH, appropriately, but it didn't
> work, and I attribute that to a line in kdeedu/CMakeLists.txt that
> says:
> 
> set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules )
> 
> Shouldn't it instead read as follows?
> 
> set(CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/modules
> ${CMAKE_MODULE_PATH})
This was disscussed quite a few times in the past (I have initiated one of 
rather long threads). The answer is "No".

In your case you should either set CMAKE_PREFIX_PATH or export KDEDIRS.




More information about the Kde-buildsystem mailing list