diff options
| author | Nick Sarnie <commendsarnex@gmail.com> | 2018-04-22 18:44:48 -0400 |
|---|---|---|
| committer | Karl Schultz <karl@lunarg.com> | 2018-04-27 18:51:42 -0600 |
| commit | 1985f4bc283c00f6e4fd0374893acc0780b197c5 (patch) | |
| tree | 157c0ce42187b4694c7dea06d89869905bba103c | |
| parent | 84135385aa50484ed8b4439004e6f10b19935b88 (diff) | |
| download | usermoji-1985f4bc283c00f6e4fd0374893acc0780b197c5.tar.xz | |
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 <sarnex@gentoo.org>
| -rw-r--r-- | layers/CMakeLists.txt | 4 |
1 files 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() |
