cmake: Remove usage of configure_package_config_file

Fixes issue shown here:
https://github.com/KhronosGroup/Vulkan-Headers/pull/415
This commit is contained in:
Juan Ramos
2023-07-05 09:59:18 -06:00
committed by Juan Ramos
parent ad5f8ee975
commit 6f34ca5a37
4 changed files with 6 additions and 35 deletions

View File

@@ -8,15 +8,6 @@ if (NOT TARGET Vulkan::Headers)
message(FATAL_ERROR "Vulkan::Headers target not defined")
endif()
if (NOT DEFINED VULKAN_HEADERS_REGISTRY_DIRECTORY)
message(FATAL_ERROR "VULKAN_HEADERS_REGISTRY_DIRECTORY not defined!")
endif()
if (NOT EXISTS "${VULKAN_HEADERS_REGISTRY_DIRECTORY}/vk.xml")
message(FATAL_ERROR "VULKAN_HEADERS_REGISTRY_DIRECTORY not valid!")
endif()
message(STATUS "VULKAN_HEADERS_REGISTRY_DIRECTORY = ${VULKAN_HEADERS_REGISTRY_DIRECTORY}")
if (NOT DEFINED VulkanHeaders_VERSION)
message(FATAL_ERROR "VulkanHeaders_VERSION not defined!")
endif()