CMake: macOS links against Vulkan;
But shh in the build script we're going to make the Vulkan library
variable point to MoltenVK.
@@ -201,6 +201,10 @@ endif()
# Vulkan
if(LOVR_USE_VULKAN)
include_directories(deps/vulkan-headers/include)
+ if(APPLE)
+ find_package(Vulkan REQUIRED)
+ set(LOVR_VULKAN Vulkan::Vulkan)
+ endif()
endif()
# OpenXR
@@ -368,6 +372,7 @@ target_link_libraries(lovr
${LOVR_MSDF}
${LOVR_ODE}
${LOVR_GLSLANG}
+ ${LOVR_VULKAN}
${LOVR_OPENXR}
${LOVR_OCULUS_AUDIO}
${LOVR_PTHREADS}
@@ -724,6 +729,7 @@ elseif(APPLE)
move_lib(${LOVR_LUA})
move_lib(${LOVR_ODE})
move_lib(${LOVR_MSDF})
+ move_lib(${LOVR_VULKAN})
move_lib(${LOVR_OCULUS_AUDIO})
move_lib(${LOVR_PHONON})
foreach(target ${ALL_PLUGIN_TARGETS})
