summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Sarnie <sarnex@gentoo.org>2022-12-02 23:41:38 -0500
committerNick Sarnie <sarnex@gentoo.org>2022-12-02 23:42:17 -0500
commit88b205d1087c7a1324cf2fbff8bb4256a79b45d9 (patch)
treec7f3f8b8be722138a46029f5766bfcdad6dbcb1b /dev-util/vulkan-headers
parentapp-alternatives/yacc: don't set YACC for Bison for now (diff)
downloadgentoo-88b205d1087c7a1324cf2fbff8bb4256a79b45d9.tar.gz
gentoo-88b205d1087c7a1324cf2fbff8bb4256a79b45d9.tar.bz2
gentoo-88b205d1087c7a1324cf2fbff8bb4256a79b45d9.zip
dev-util/vulkan-headers: Fix cmake file install dir
Closes: https://bugs.gentoo.org/883593 Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
Diffstat (limited to 'dev-util/vulkan-headers')
-rw-r--r--dev-util/vulkan-headers/files/vulkan-headers-9999-cmake-Install-cmake-files-to-CMAKE_INSTALL_DATADIR.patch24
-rw-r--r--dev-util/vulkan-headers/vulkan-headers-9999.ebuild2
2 files changed, 26 insertions, 0 deletions
diff --git a/dev-util/vulkan-headers/files/vulkan-headers-9999-cmake-Install-cmake-files-to-CMAKE_INSTALL_DATADIR.patch b/dev-util/vulkan-headers/files/vulkan-headers-9999-cmake-Install-cmake-files-to-CMAKE_INSTALL_DATADIR.patch
new file mode 100644
index 000000000000..98928683503d
--- /dev/null
+++ b/dev-util/vulkan-headers/files/vulkan-headers-9999-cmake-Install-cmake-files-to-CMAKE_INSTALL_DATADIR.patch
@@ -0,0 +1,24 @@
+From 419626d4fc27c026c10cde6029a73d717843ac78 Mon Sep 17 00:00:00 2001
+From: Nick Sarnie <sarnex@gentoo.org>
+Date: Fri, 2 Dec 2022 23:32:11 -0500
+Subject: [PATCH] cmake: Install cmake files to CMAKE_INSTALL_DATADIR
+
+Signed-off-by: Nick Sarnie <sarnex@gentoo.org>
+---
+ cmake/install.cmake | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/cmake/install.cmake b/cmake/install.cmake
+index c19b5e7..047df01 100644
+--- a/cmake/install.cmake
++++ b/cmake/install.cmake
+@@ -26,7 +26,7 @@ install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/registry" DESTINATION ${VLK_REGIS
+
+ set(export_name "VulkanHeadersConfig")
+ set(namespace "Vulkan::")
+-set(cmake_files_install_dir ${CMAKE_INSTALL_LIBDIR}/cmake/VulkanHeaders/)
++set(cmake_files_install_dir ${CMAKE_INSTALL_DATADIR}/cmake/VulkanHeaders/)
+
+ # Set EXPORT_NAME for consistency with established names. The CMake generated ones won't work.
+ set_target_properties(Vulkan-Headers PROPERTIES EXPORT_NAME "Headers")
+
diff --git a/dev-util/vulkan-headers/vulkan-headers-9999.ebuild b/dev-util/vulkan-headers/vulkan-headers-9999.ebuild
index 591287d773f0..d0f8e008ef76 100644
--- a/dev-util/vulkan-headers/vulkan-headers-9999.ebuild
+++ b/dev-util/vulkan-headers/vulkan-headers-9999.ebuild
@@ -22,3 +22,5 @@ LICENSE="Apache-2.0"
SLOT="0"
BDEPEND=">=dev-util/cmake-3.10.2"
+
+PATCHES="${FILESDIR}/${P}-cmake-Install-cmake-files-to-CMAKE_INSTALL_DATADIR.patch"