cmake: Remove Vulkan::Registry

Vulkan::Registry behaves differently in `add_subdirectory` vs
`find_package` builds. Which can result in build failures.

Also Vulkan::Registry never made sense as a CMake target and
was very brittle in numerous ways.

Better to provide a `VULKAN_HEADERS_REGISTRY_DIRECTORY` to users
instead and remove Vulkan::Registry completely.

closes #351
This commit is contained in:
Juan Ramos
2023-01-09 16:12:28 -07:00
committed by Juan Ramos
parent 18963a6cc0
commit 5eeb2c4c57
4 changed files with 22 additions and 16 deletions

View File

@@ -0,0 +1,7 @@
@PACKAGE_INIT@
include("${CMAKE_CURRENT_LIST_DIR}/VulkanHeadersTargets.cmake")
check_required_components(VulkanHeaders)
set(VULKAN_HEADERS_REGISTRY_DIRECTORY "@PACKAGE_VULKAN_HEADERS_REGISTRY_DIRECTORY@")