Skip to content
Open
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
13 changes: 12 additions & 1 deletion cmake/transcribe-install.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,18 @@ if(NOT TRANSCRIBE_BUILD_SHARED)
list(APPEND _frameworks Accelerate)
endif()
if("vulkan" IN_LIST _kinds)
list(APPEND _system_libs vulkan)
# The Vulkan import library's basename is platform-specific: Windows'
# LunarG SDK ships `vulkan-1.lib` (the import lib for the
# driver-installed vulkan-1.dll loader); every other platform links
# `libvulkan`. Emit the right name per-OS so a non-CMake consumer
# reconstructing the link line from this manifest resolves it — a bare
# `vulkan` becomes `vulkan.lib` on MSVC, which the SDK does not provide,
# so the link dies with LNK1181.
if(WIN32)
list(APPEND _system_libs vulkan-1)
else()
list(APPEND _system_libs vulkan)
endif()
endif()
if(_frameworks)
list(REMOVE_DUPLICATES _frameworks)
Expand Down