Skip to content

Check that VulkanHeaders_VERSION exists before use - #1984

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:check_VulkanHeaders_VERSION_cmake_var
Jul 22, 2026
Merged

Check that VulkanHeaders_VERSION exists before use#1984
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:check_VulkanHeaders_VERSION_cmake_var

Conversation

@charles-lunarg

Copy link
Copy Markdown
Collaborator

When a project uses add_subdirectory to add the Vulkan-Headers, the lack of install causes VulkanHeaders_VERSION to not be defined. Since there is no easy way to get the version, simply disable the check if that variable isn't defined.

When a project uses add_subdirectory to add the Vulkan-Headers, the lack
of install causes VulkanHeaders_VERSION to not be defined. Since there
is no easy way to get the version, simply disable the check if that
variable isn't defined.
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 50639.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 50656.

@charles-lunarg

Copy link
Copy Markdown
Collaborator Author

Fixes #1983

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3656 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3656 passed.

@charles-lunarg

Copy link
Copy Markdown
Collaborator Author

The MacOS failing job is a known issue that exists with CMake. There isn't a good workaround (other than disabling parallelism) so I'm ignoring it and merging.

@charles-lunarg
charles-lunarg merged commit 59a7059 into KhronosGroup:main Jul 22, 2026
94 of 96 checks passed
@charles-lunarg
charles-lunarg deleted the check_VulkanHeaders_VERSION_cmake_var branch July 22, 2026 16:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Version check in build assumes a fully built and installed copy of Vulkan-headers

2 participants