datadir.patch 672 B

1234567891011121314151617181920
  1. commit eae955f0525724526fa602fd126623b9d84599fa
  2. Author: orbea <orbea@riseup.net>
  3. Date: Thu Nov 5 22:08:24 2020 -0800
  4. cmake: Install cmake files to CMAKE_INSTALL_DATADIR
  5. diff --git a/CMakeLists.txt b/CMakeLists.txt
  6. index eb46947..6f01ef0 100644
  7. --- a/CMakeLists.txt
  8. +++ b/CMakeLists.txt
  9. @@ -79,7 +79,7 @@ target_include_directories(${PROJECT_NAME} INTERFACE
  10. if (SPIRV_HEADERS_ENABLE_INSTALL)
  11. message(STATUS "Installing SPIRV-Header")
  12. - set(config_install_dir "${CMAKE_INSTALL_LIBDIR}/cmake/${PROJECT_NAME}")
  13. + set(config_install_dir "${CMAKE_INSTALL_DATADIR}/cmake/${PROJECT_NAME}")
  14. set(generated_dir "${CMAKE_CURRENT_BINARY_DIR}/generated")