ports/graphics/vulkan-validation-layers/files/patch-CMakeLists.txt

26 lines
1,004 B
Text

CMake Error at CMakeLists.txt:71 (find_package):
Could not find a package configuration file provided by
"VulkanUtilityLibraries" with any of the following names:
VulkanUtilityLibrariesConfig.cmake
vulkanutilitylibraries-config.cmake
Add the installation prefix of "VulkanUtilityLibraries" to
CMAKE_PREFIX_PATH or set "VulkanUtilityLibraries_DIR" to a directory
containing one of the above files. If "VulkanUtilityLibraries" provides a
separate development package or SDK, be sure it has been installed.
--- CMakeLists.txt.orig 2023-09-06 01:26:34 UTC
+++ CMakeLists.txt
@@ -68,7 +68,10 @@ endif()
endif()
endif()
-find_package(VulkanUtilityLibraries REQUIRED CONFIG QUIET)
+find_package(VulkanUtilityLibraries CONFIG QUIET)
+if (NOT TARGET Vulkan::UtilityHeaders OR NOT TARGET Vulkan::LayerSettings)
+ add_subdirectory(Vulkan-Utility-Libraries EXCLUDE_FROM_ALL SYSTEM)
+endif()
if (ANNOTATED_SPEC_LINK)
message("ANNOTATED_SPEC_LINK is ${ANNOTATED_SPEC_LINK}")