overriding CMAKE_MODULE_PATH

Yury G. Kudryashov urkud at ya.ru
Sun Aug 15 19:19:25 CEST 2010


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})

This would allow user to say, e.g.,

cmake ${kdenetowrk_src_dir} -
DCMAKE_MODULE_PATH=${libktorrent_prefix}/share/apps/cmake/modules

-- 
Yury G. Kudryashov



More information about the Kde-buildsystem mailing list