Skip to content

cmake: Use VulkanHeaders_VERSION#1101

Merged
juan-lunarg merged 1 commit intoKhronosGroup:masterfrom
juan-lunarg:juaramos/VulkanHeaders_VERSION
Dec 27, 2022
Merged

cmake: Use VulkanHeaders_VERSION#1101
juan-lunarg merged 1 commit intoKhronosGroup:masterfrom
juan-lunarg:juaramos/VulkanHeaders_VERSION

Conversation

@juan-lunarg
Copy link
Copy Markdown
Contributor

Removes need for a bit of python code / parsing.
And it's consistent with VVL's approach.

Removes need for a bit of python code / parsing.
And it's consistent with VVL's approach.
@ci-tester-lunarg
Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 53797.

@ci-tester-lunarg
Copy link
Copy Markdown

CI Vulkan-Loader build # 1691 running.

@ci-tester-lunarg
Copy link
Copy Markdown

CI Vulkan-Loader build # 1691 passed.

Copy link
Copy Markdown
Collaborator

@charles-lunarg charles-lunarg left a comment

Choose a reason for hiding this comment

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

Much nicer!

Love to see hacky code that duplicates functionality replaced with the good, reuseable one.

@juan-lunarg juan-lunarg merged commit 7ed703e into KhronosGroup:master Dec 27, 2022
@juan-lunarg juan-lunarg deleted the juaramos/VulkanHeaders_VERSION branch December 27, 2022 21:50
Copy link
Copy Markdown
Collaborator

@charles-lunarg charles-lunarg left a comment

Choose a reason for hiding this comment

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

ACK! I didn't realize this change is subtly breaking behavior. I still want it (parsing the header version manually is yuck), but this PR removes a checked in file. It shouldn't to make CMake generate the file now that the info is 'in' the header's CMake code.

The reason there was a checked in file with the version was so that the generated code had a 'version' associated with it.

Because, while the headers always has an associated version, when building the code the version that is 'used to generate the code' may differ from the header version currently being compiled against. This made it possible to see exactly which header version the autogen code is based on.

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.

3 participants