Skip to content

Commit 67a2323

Browse files
Warn if headers is newer than generated version
1 parent ab275e4 commit 67a2323

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ if(WIN32)
5353
endif()
5454

5555
find_package(VulkanHeaders ${PROJECT_VERSION} CONFIG QUIET)
56+
if (${VulkanHeaders_VERSION} VERSION_GREATER ${PROJECT_VERSION})
57+
message(WARNING "The Vulkan Headers version ${VulkanHeaders_VERSION} is newer than the expected version ${PROJECT_VERSION} used by the Vulkan-Loader. May cause issues.")
58+
endif()
5659

5760
include(GNUInstallDirs)
5861

0 commit comments

Comments
 (0)