Bug#635980: 3rd party packages should not install modules to /usr/share/cmake-2.8/Modules

Modestas Vainius modax at debian.org
Fri Jul 29 22:44:54 UTC 2011

Package: libclaw-dev
Version: 1.6.1-4
Severity: serious
User: cmake at packages.debian.org
Usertags: 3rdparty-modules-in-cmake-root


Your package ships a cmake module in /usr/share/cmake-2.8/Modules/, namely:


Third party packages should NOT install custom modules to CMAKE_ROOT directory 
because it is strictly for use by cmake itself and its path is subject to 
change without any notice (e.g. when CMake 2.10 is released).

You should replace Find* module with package configuration file(s). Read more 
about them at [1] and [2]. It is recommended to install <package>-config.cmake 
files to /usr/lib/${CMAKE_LIBRARY_ARCHITECTURE}/cmake/<package>/, 
/usr/lib/cmake/<package>/ or /usr/share/cmake/<package>/ as needed. Support 
for ${CMAKE_LIBRARY_ARCHITECTURE} was introduced in cmake 2.8.5, the rest 
requires cmake 2.6.3.


[2] http://cmake.org/cmake/help/cmake-2-8-docs.html#command:find_package 
(scroll to Config mode)

Debian CMake maintainer,
Modestas Vainius <modax at debian.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-games-devel/attachments/20110730/439505a6/attachment.pgp>

More information about the Pkg-games-devel mailing list