[cmake-developers] [patch] Expose GNUInstallDirs absolute path algorithm
Roger Leigh
rleigh at codelibre.net
Sun Aug 28 13:51:25 EDT 2016
In several projects I've had a need to compute the "full" absolute path
for an installation directory. The logic to do this is in the
GNUInstallDirs module, used to compute the CMAKE_INSTALL_FULL_*
variables for each of the CMAKE_INSTALL_* cache variables it defines.
In order to allow for this logic to be reused, I've separated it out
into a macro "set_full_install_dir". This can then be used by any end
user to compute their own absolute paths using the same logic.
The reason for this is that my projects are creating their own
project-specific installation directory cache variables based upon the
GNUInstallDirs variables, or sometimes even from scratch. I then need
to compute the full path. But I need this macro to be able to do that
to match the GNUInstallDirs behaviour.
The macro name might need adjusting, but I hope the basic approach is OK
in principle.
Kind regards,
Roger
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-GNUInstallDirs-Add-set_full_install_dir-macro.patch
Type: text/x-diff
Size: 4123 bytes
Desc: not available
URL: <http://public.kitware.com/pipermail/cmake-developers/attachments/20160828/150030bc/attachment.patch>
More information about the cmake-developers
mailing list