Skip to content

Commit 4eaeafc

Browse files
committed
misc: provide the Vulkan loader on MacOS
1 parent a2a252f commit 4eaeafc

2 files changed

Lines changed: 11 additions & 0 deletions

File tree

CMakeLists.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -415,3 +415,10 @@ target_link_libraries(Cyph3D PRIVATE spdlog::spdlog)
415415

416416
find_package(nfd CONFIG REQUIRED)
417417
target_link_libraries(Cyph3D PRIVATE nfd::nfd)
418+
419+
# ---- Dependency: KhronosGroup/Vulkan-Loader ----
420+
421+
if (CMAKE_SYSTEM_NAME STREQUAL "Darwin")
422+
find_package(VulkanLoader CONFIG REQUIRED)
423+
add_dependencies(Cyph3D Vulkan::Loader)
424+
endif ()

vcpkg.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@
3030
{
3131
"name": "spdlog",
3232
"default-features": false
33+
},
34+
{
35+
"name": "vulkan-loader",
36+
"platform": "osx"
3337
}
3438
]
3539
}

0 commit comments

Comments
 (0)