aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/spirv-reflect/export-targets.patch
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/spirv-reflect/export-targets.patch
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/spirv-reflect/export-targets.patch')
-rw-r--r--vcpkg/ports/spirv-reflect/export-targets.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/vcpkg/ports/spirv-reflect/export-targets.patch b/vcpkg/ports/spirv-reflect/export-targets.patch
new file mode 100644
index 0000000..82a9fe7
--- /dev/null
+++ b/vcpkg/ports/spirv-reflect/export-targets.patch
@@ -0,0 +1,30 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 040c818..0e1476c 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -111,10 +111,20 @@ if(SPIRV_REFLECT_STATIC_LIB)
+ add_library(spirv-reflect-static STATIC ${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.h
+ ${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.c)
+
+- target_include_directories(spirv-reflect-static
+- PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
+- install(TARGETS spirv-reflect-static
+- LIBRARY DESTINATION lib
+- ARCHIVE DESTINATION lib)
++ target_include_directories(spirv-reflect-static INTERFACE $<INSTALL_INTERFACE:include/spirv-reflect>)
++
++ set_target_properties(spirv-reflect-static PROPERTIES EXPORT_NAME spirv-reflect)
++
++ install(TARGETS spirv-reflect-static
++ EXPORT unofficial-spirv-reflect-config
++ LIBRARY DESTINATION lib)
++
++ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/include/spirv/unified1/spirv.h DESTINATION include/spirv-reflect)
++ install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.h DESTINATION include/spirv-reflect)
++
++ install(EXPORT unofficial-spirv-reflect-config
++ FILE unofficial-spirv-reflect-config.cmake
++ NAMESPACE unofficial::
++ DESTINATION share/unofficial-spirv-reflect)
+ endif()
+