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:
parent
18963a6cc0
commit
5eeb2c4c57
4 changed files with 22 additions and 16 deletions
7
cmake/VulkanHeadersConfig.cmake.in
Normal file
7
cmake/VulkanHeadersConfig.cmake.in
Normal 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@")
|
||||
Loading…
Add table
Add a link
Reference in a new issue