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>2024-01-16 09:02:54 +0800
commit6a9e2e96878738c181dc53fac5fe803d13765a1b (patch)
tree7abfc9060c6ae664252ff847c01316ec753e0f58
parentcb9f70ecb4a9d9bdab227cccafd562367cb0d9be (diff)
downloadSPIRV-Headers-6a9e2e96878738c181dc53fac5fe803d13765a1b.tar.gz
SPIRV-Headers-6a9e2e96878738c181dc53fac5fe803d13765a1b.tar.bz2
SPIRV-Headers-6a9e2e96878738c181dc53fac5fe803d13765a1b.zip
Fix build error caused by cmake upgrade
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}/