mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
e65eff22e8
This should prevent extra calls to find_package() from causing issues.
10 lines
267 B
CMake
10 lines
267 B
CMake
include_guard()
|
|
|
|
if (NOT APPLE)
|
|
find_package(VulkanHeaders CONFIG QUIET)
|
|
find_package(Vulkan QUIET)
|
|
if (VulkanHeaders_FOUND AND Vulkan_FOUND)
|
|
set(HAS_VULKAN ON CACHE BOOL "" FORCE)
|
|
add_compile_definitions(USE_VULKAN=1)
|
|
endif()
|
|
endif()
|