From 1985f4bc283c00f6e4fd0374893acc0780b197c5 Mon Sep 17 00:00:00 2001 From: Nick Sarnie Date: Sun, 22 Apr 2018 18:44:48 -0400 Subject: layers: Install into the data root directory The layers files fit are not really configuration files and are rarely edited by users. So, let's move the install location into the data root directory. Signed-off-by: Nick Sarnie --- layers/CMakeLists.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/layers/CMakeLists.txt b/layers/CMakeLists.txt index 9ade6a03..7f341b48 100644 --- a/layers/CMakeLists.txt +++ b/layers/CMakeLists.txt @@ -131,7 +131,7 @@ if ((Win32) OR (NOT (CMAKE_CURRENT_SOURCE_DIR STREQUAL CMAKE_CURRENT_BINARY_DIR) endif() # Add targets for JSON file install on Linux. -# Need to remove the "./" from the library path before installing to /etc. +# Need to remove the "./" from the library path before installing to system directories. if(UNIX) if(INSTALL_LVL_FILES) foreach (config_file ${LAYER_JSON_FILES}) @@ -142,7 +142,7 @@ if(UNIX) VERBATIM DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/linux/${config_file}.json ) - install(FILES ${CMAKE_CURRENT_BINARY_DIR}/staging-json/${config_file}.json DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/vulkan/explicit_layer.d) + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/staging-json/${config_file}.json DESTINATION ${CMAKE_INSTALL_DATAROOTDIR}/vulkan/explicit_layer.d) endforeach(config_file) endif() endif() -- cgit v1.2.3