Skip to content

Commit 50399a2

Browse files
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.
1 parent 4ff7bc6 commit 50399a2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ if(WIN32)
5252
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")
5353
endif()
5454

55-
find_package(VulkanHeaders CONFIG QUIET)
55+
find_package(VulkanHeaders ${CMAKE_PROJECT_VERSION} CONFIG QUIET)
5656

5757
include(GNUInstallDirs)
5858

0 commit comments

Comments
 (0)