loader: use CMAKE_INSTALL_FULL_<dir> to improve Linux filesystem compatibility
authorDor Askayo <dor.askayo@gmail.com>
Sat, 22 Oct 2016 17:42:44 +0000 (20:42 +0300)
committerKarl Schultz <karl@lunarg.com>
Thu, 27 Oct 2016 22:30:07 +0000 (16:30 -0600)
commit9cb68e2eb1a9f56e60edeb84d2f73024618218d1
treee8b4dff08eb339842e28d667d869079b342ea059
parentb7f3c87b41941e2529a0be3bc647fae3e077a36a
loader: use CMAKE_INSTALL_FULL_<dir> to improve Linux filesystem compatibility

In order to improve the loader's compatibility with different filesystem hierarchies
under Linux, use CMake's CMAKE_INSTALL_FULL_<dir> instead of CMAKE_INSTALL_<dir> to
correctly resolve the absolute paths of SYSCONFDIR and DATADIR in compliance with
the GNU Coding Standard [1] and Linux Foundation's Filesystem Hierarchy Standard [2],
as explained in CMake's documentation [3].

Note to packagers: When using CMAKE_INSTALL_PREFIX, this commit obviates the
definition of other CMAKE_INSTALL_ defines to properly detect ICD and layer
manifests in GNU/Linux-compliant filesystems.

This commit fixes GH-1083. (see the issue for more details)

[1] https://www.gnu.org/prep/standards/html_node/Directory-Variables.html
[2] https://refspecs.linuxfoundation.org/FHS_3.0/fhs/index.html
[3] https://cmake.org/cmake/help/v3.4/module/GNUInstallDirs.html

Change-Id: If743a3c8f5f7381e00c0d23b95b9e13c0dead144
Signed-off-by: Dor Askayo <dor.askayo@gmail.com>
CMakeLists.txt
loader/vk_loader_platform.h