spirv-tools: Fix cmake files installation location

This commit is contained in:
Alexey Pavlov
2020-03-12 11:14:30 +03:00
parent 294a9d9f80
commit a3d0c331c8
2 changed files with 17 additions and 3 deletions

View File

@@ -0,0 +1,11 @@
--- a/CMakeLists.txt 2020-03-10 12:35:41.979200000 +0300
+++ b/CMakeLists.txt 2020-03-10 12:35:41.979200000 +0300
@@ -210,7 +210,7 @@
endif()
if(ENABLE_SPIRV_TOOLS_INSTALL)
- if(WIN32)
+ if(MSVC)
macro(spvtools_config_package_dir TARGET PATH)
set(${PATH} ${TARGET}/cmake)
endmacro()

View File

@@ -4,7 +4,7 @@ _realname=spirv-tools
pkgbase=mingw-w64-${_realname}
pkgname=("${MINGW_PACKAGE_PREFIX}-${_realname}")
pkgver=2020.1
pkgrel=1
pkgrel=2
pkgdesc="API and commands for processing SPIR-V modules (mingw-w64)"
arch=('any')
url="https://www.khronos.org/vulkan/"
@@ -15,12 +15,15 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cmake"
"${MINGW_PACKAGE_PREFIX}-python"
"git")
source=("git+https://github.com/KhronosGroup/SPIRV-Tools.git#tag=v${pkgver}"
"git+https://github.com/KhronosGroup/SPIRV-Headers.git")
"git+https://github.com/KhronosGroup/SPIRV-Headers.git"
001-cmake-files-location.patch)
sha256sums=('SKIP'
'SKIP')
'SKIP'
'b76834f15d7af8c268897fac1584e94199c976a57dafb2c4390e0fce28934776')
prepare() {
cd SPIRV-Tools
patch -p1 -i ${srcdir}/001-cmake-files-location.patch
}
build() {