Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ if (VUL_ENABLE_INSTALL)
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/VulkanUtilityLibrariesConfig.cmake.in" [=[
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


@PACKAGE_INIT@

Expand Down