Skip to content

Conversation

@crueter
Copy link
Contributor

@crueter crueter commented Oct 1, 2025

closes #315

@crueter crueter marked this pull request as draft October 1, 2025 01:56
@CLAassistant
Copy link

CLAassistant commented Oct 1, 2025

CLA assistant check
All committers have signed the CLA.

todo:
- maybe just use var substitution? because fetchcontent is incredible
- test this
- sign the commit

I don't have an environment available to test this yet
@crueter crueter marked this pull request as ready for review October 15, 2025 20:11
@crueter crueter changed the title WIP: [cmake] require >= Vulkan Headers version in VULConfig.cmake [cmake] require >= Vulkan Headers version in VULConfig.cmake Oct 15, 2025
include(CMakeFindDependencyMacro)
# NOTE: Because VulkanHeaders is a PUBLIC dependency it needs to be found prior to VulkanUtilityLibraries
find_dependency(VulkanHeaders REQUIRED)
find_dependency(VulkanHeaders @PROJECT_VERSION@ REQUIRED)
Copy link
Collaborator

@charles-lunarg charles-lunarg Nov 12, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any particular reason to use @PROJECT_VERSION@ instead of ${PROJECT_VERSION}? Unless the @@ is required, I'd like to use ${} to make the file more self consistent.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, I actually meant to do that but forgot about it :P

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, I remember why; CMake doesn't parse that string so we have to use @@. Otherwise it turns into:

image

@charles-lunarg charles-lunarg merged commit 97e5dbb into KhronosGroup:main Nov 12, 2025
18 checks passed
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.

[cmake] explicitly "require" certain VK::Headers version

3 participants