cmake: Fix usage of Vulkan::Registry
authorJuan Ramos <juan@lunarg.com>
Tue, 10 Jan 2023 16:57:35 +0000 (09:57 -0700)
committerJuan Ramos <114601453+juan-lunarg@users.noreply.github.com>
Tue, 10 Jan 2023 17:54:31 +0000 (10:54 -0700)
Vulkan::Registry was deprecated by Vulkan-Headers

Use 'VULKAN_HEADERS_REGISTRY_DIRECTORY' instead.

closes #1106

CMakeLists.txt
scripts/known_good.json

index 8a547b96173ec1c82277bd5ce8d80489dbc0c9a3..479a57572fc463e77e718104fe5a08217e8ec4e5 100644 (file)
@@ -322,17 +322,15 @@ endif()
 
 # Optional codegen target
 if(PYTHONINTERP_FOUND)
-    get_target_property(VulkanRegistry_DIR Vulkan::Registry INTERFACE_INCLUDE_DIRECTORIES)
     add_custom_target(VulkanLoader_generated_source
                       COMMAND ${PYTHON_EXECUTABLE} ${PROJECT_SOURCE_DIR}/scripts/generate_source.py
-                              ${VulkanRegistry_DIR}
+                              ${VULKAN_HEADERS_REGISTRY_DIRECTORY}
                               --generated-version ${VulkanHeaders_VERSION}
                               --incremental)
 else()
     message("WARNING: VulkanLoader_generated_source target requires python 3")
 endif()
 
-
 if(UNIX)
     target_compile_definitions(loader_common_options INTERFACE FALLBACK_CONFIG_DIRS="${FALLBACK_CONFIG_DIRS}" FALLBACK_DATA_DIRS="${FALLBACK_DATA_DIRS}")
 
index 846c416ea7b9fe6b2dbb4ea3205bc447be451289..cd27e7f271310f1c847212c1705cc723256d6a37 100644 (file)
@@ -6,7 +6,7 @@
             "sub_dir": "Vulkan-Headers",
             "build_dir": "Vulkan-Headers/build",
             "install_dir": "Vulkan-Headers/build/install",
-            "commit": "v1.3.238"
+            "commit": "5eeb2c4c570ce92f5f48bf667e39e9d4da2ef13a"
         },
         {
             "name": "googletest",