[CMake] [PATCH] Defining standard GNU directory variables
Enrico Scholz
enrico.scholz at informatik.tu-chemnitz.de
Sat Nov 25 08:47:19 EST 2006
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 480 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/cmake/attachments/20061125/993accc5/attachment.pgp
More information about the CMake
mailing list