Set VulkanHeaders_INCLUDE_DIRS even when target Vulkan::Headers is defined

This commit is contained in:
MuAlphaOmegaEpsilon 2019-07-27 19:13:37 +02:00 committed by Lenny Komow
parent d595f54875
commit a037f81384

View File

@ -31,6 +31,7 @@ find_package(PythonInterp 3 QUIET)
if (TARGET Vulkan::Headers)
message(STATUS "Using Vulkan headers from Vulkan::Headers target")
get_target_property(VulkanHeaders_INCLUDE_DIRS Vulkan::Headers INTERFACE_INCLUDE_DIRECTORIES)
get_target_property(VulkanRegistry_DIR Vulkan::Registry INTERFACE_INCLUDE_DIRECTORIES)
else()
find_package(VulkanHeaders)