summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXuelian Bai <xuelian.bai@samsung.com>2023-02-28 12:52:43 +0800
committerXuelian Bai <xuelian.bai@samsung.com>2023-02-28 12:54:19 +0800
commita5de8c8a36c4cd329d79b02437de030e7fc5c0f0 (patch)
tree9b5e2049461b317361ceff9fb697d2247de7b86f
parentc3cbc004b9b6edccedd81f400330e9d7b72c8a9e (diff)
downloadSPIRV-Headers-a5de8c8a36c4cd329d79b02437de030e7fc5c0f0.tar.gz
SPIRV-Headers-a5de8c8a36c4cd329d79b02437de030e7fc5c0f0.tar.bz2
SPIRV-Headers-a5de8c8a36c4cd329d79b02437de030e7fc5c0f0.zip
Find the target cmake file by command and then cp the file, removing this file will cause build error in Vulkan-Validation layer. Change-Id: I604bb713740326a47de5e5aa8de1dd93ca7358e1 Signed-off-by: Xuelian Bai <xuelian.bai@samsung.com>
-rw-r--r--packaging/spirv-headers.spec3
1 files changed, 2 insertions, 1 deletions
diff --git a/packaging/spirv-headers.spec b/packaging/spirv-headers.spec
index ff84f6c..020af85 100644
--- a/packaging/spirv-headers.spec
+++ b/packaging/spirv-headers.spec
@@ -43,7 +43,8 @@ mkdir -p %{buildroot}%{_includedir}/
mkdir -p %{buildroot}%{_datadir}/cmake/SPIRV-Headers/
cp -Rf include/spirv %{buildroot}%{_includedir}/
cp -rf build/generated/* %{buildroot}%{_datadir}/cmake/SPIRV-Headers
-cp -rf build/CMakeFiles/Export/share/cmake/SPIRV-Headers/* %{buildroot}%{_datadir}/cmake/SPIRV-Headers
+#cp -rf build/CMakeFiles/Export/share/cmake/SPIRV-Headers/* %{buildroot}%{_datadir}/cmake/SPIRV-Headers
+find build/CMakeFiles/Export/ -name 'SPIRV-HeadersTargets.cmake' -exec cp {} %{buildroot}%{_datadir}/cmake/SPIRV-Headers \;
# devel pkg
cp -rf include/* %{buildroot}%{_includedir}/