mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-25 13:09:00 +08:00
4496d78eef
<!-- If your PR fixes issues, please note that here by adding "Fixes #NNNNNN." for each fixed issue on separate lines. --> Fixes https://github.com/microsoft/vcpkg/issues/29496 - Remove unnecessary dependencies: `spirv-headers`. - Add export for target `spirv-reflect-static`. - Install headers of the port and fix usage defects. Usage test passed with `x64-windows` triplet. - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] ~SHA512s are updated for each updated download.~ - [ ] ~The "supports" clause reflects platforms that may be fixed by this new version.~ - [ ] ~Any fixed [CI baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt) entries are removed from that file.~ - [ ] ~Any patches that are no longer applied are deleted from the port's directory.~ - [x] The version database is fixed by rerunning `./vcpkg x-add-version --all` and committing the result. - [x] Only one version is added to each modified port's versions file.
29 lines
1.3 KiB
Diff
29 lines
1.3 KiB
Diff
diff --git a/CMakeLists.txt b/CMakeLists.txt
|
|
index 040c818..0e1476c 100644
|
|
--- a/CMakeLists.txt
|
|
+++ b/CMakeLists.txt
|
|
@@ -111,8 +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)
|
|
+ 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()
|
|
|