overriding CMAKE_MODULE_PATH
Alexander Neundorf
neundorf at kde.org
Sun Aug 15 20:28:59 CEST 2010
On Sunday 15 August 2010, Yury G. Kudryashov wrote:
> 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
Why would you want to do that ?
I think this shouldn't be necessary, and might break more stuff than it helps.
Alex
More information about the Kde-buildsystem
mailing list