From 237579d5f2305e6a6b09c69af97020ade79cdfa5 Mon Sep 17 00:00:00 2001 From: Charles Giessen Date: Tue, 16 Sep 2025 13:10:34 -0500 Subject: [PATCH] Require a compatible VulkanHeaders version in find_package Adding this field uses the generated version in `project()` to force CMake to check that the found VulkanHeaders package's version is the same or greater than the version of VulkanHeaders this project was generated with. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5b34889c5..9d9506a0e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -52,7 +52,7 @@ if(WIN32) set(BUILD_DLL_VERSIONINFO "" CACHE STRING "Set the version to be used in the loader.rc file. Default value is the currently generated header version") endif() -find_package(VulkanHeaders CONFIG QUIET) +find_package(VulkanHeaders ${CMAKE_PROJECT_VERSION} CONFIG QUIET) include(GNUInstallDirs)