Skip to content

Commit fade4d5

Browse files
committed
app/CMakeLists.txt: compute Vulkan_Target_SDK
Removing downstream vendored version of `FindVulkan.cmake` caused this variable to disappear. Compute it again where it is needed. #1490 (comment) for the full discussion.
1 parent 265d313 commit fade4d5

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

app/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ if(IOS)
137137
endif ()
138138
# Vulkan cache variables already defined by main project CMakeLists and updated on Apple platforms by global_options.cmake
139139
if(Vulkan_LIBRARY AND ${Vulkan_VERSION} VERSION_GREATER_EQUAL 1.3.278)
140+
get_filename_component(Vulkan_Target_SDK "$ENV{VULKAN_SDK}/.." REALPATH)
140141
target_sources(${PROJECT_NAME} PRIVATE
141142
${Vulkan_Target_SDK}/iOS/share/vulkan
142143
)

0 commit comments

Comments
 (0)