Skip to content

build: Check if Vulkan-Headers is an ALIAS target - #2005

Merged
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:check_vulkan_headers_is_aliased
Aug 10, 2026
Merged

build: Check if Vulkan-Headers is an ALIAS target#2005
charles-lunarg merged 1 commit into
KhronosGroup:mainfrom
charles-lunarg:check_vulkan_headers_is_aliased

Conversation

@charles-lunarg

Copy link
Copy Markdown
Collaborator

When projects make Vulkan-headers available using add_subdirectory, the Vulkan::Headers target is an ALIAS, not an IMPORTED target. This breaks the AppleClang workaround as CMake cannot modify the properties of ALIAS targets. Because we don't need the workaround when users add Vulkan-Headers using add_subdirectory, just check that it isn't an ALIAS target before calling set_target_properties.

When projects make Vulkan-headers available using add_subdirectory, the
Vulkan::Headers target is an ALIAS, not an IMPORTED target. This breaks
the AppleClang workaround as CMake cannot modify the properties of
ALIAS targets. Because we don't need the workaround when users add
Vulkan-Headers using add_subdirectory, just check that it isn't an
ALIAS target before calling set_target_properties.
@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 72704.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build queued with queue ID 72721.

@charles-lunarg

Copy link
Copy Markdown
Collaborator Author

Linking KhronosGroup/Vulkan-Utility-Libraries#402 for more context

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3692 running.

@ci-tester-lunarg

Copy link
Copy Markdown

CI Vulkan-Loader build # 3692 passed.

@charles-lunarg
charles-lunarg merged commit fc8465f into KhronosGroup:main Aug 10, 2026
51 checks passed
@charles-lunarg
charles-lunarg deleted the check_vulkan_headers_is_aliased branch August 10, 2026 18:27
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.

2 participants