spirv-tools: Fix cmake files installation location
This commit is contained in:
11
mingw-w64-spirv-tools/001-cmake-files-location.patch
Normal file
11
mingw-w64-spirv-tools/001-cmake-files-location.patch
Normal 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()
|
||||
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user