RIF: [CMake] [PATCH] Defining standard GNU directory variables

Frederic Heem frederic.heem at telsey.it
Sat Nov 25 12:56:40 EST 2006


Hi,
A similar script has already been added to the bug tracker, see the following link.
http://www.cmake.org/Bug/bug.php?op=show&bugid=3976
Let´s grab the best of the 2 scripts and merge them to make one unique script.
Frederic Heem


-----Messaggio originale-----
Da:	cmake-bounces+frederic.heem=telsey.it at cmake.org per conto di Enrico Scholz
Inviato:	sab 25/11/2006 14.47
A:	cmake at cmake.org
Cc:	
Oggetto:	[CMake] [PATCH] Defining standard GNU directory variables

Hello,

I uploaded a module to

                http://ensc.de/cmake/FindGNUPaths.cmake

which sets variables defined in the GNU coding standards and which are
used by the most auto* based projects. Current cmake suffers under
missing standardization of used paths. E.g. lot of projects are writing
simply

| install(TARGETS foolib LIBRARY DESTINATION lib)

This is wrong on multilib systems which might expect libraries at
/usr/lib64, and it requires patching of one or more CMakeLists.txt
files by packagers to fix this.


My module provides an uniform way for packagers to set correct paths,
e.g. by

|  cmake -Dlibdir=%_libdir ...

and requires that developer writes

| find_package(GNUPaths)
| ...
| install(TARGETS foolib LIBRARY DESTINATION "${libdir}")




Enrico





More information about the CMake mailing list