From a481cf8e06449e5d176c541451c6287dfc0f0b1e Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Mon, 9 Feb 2026 10:36:40 -0800 Subject: [PATCH] Warn if headers is newer than generated version --- CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3ac635c98..15c44532b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -53,6 +53,9 @@ if(WIN32) endif() find_package(VulkanHeaders ${PROJECT_VERSION} CONFIG QUIET) +if (${VulkanHeaders_VERSION} VERSION_GREATER ${PROJECT_VERSION}) + message(WARNING "The Vulkan Headers version ${VulkanHeaders_VERSION} is newer than the expected version ${PROJECT_VERSION} used by the Vulkan-Loader. May cause issues.") +endif() include(GNUInstallDirs)