mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-21 03:10:26 +00:00
Similar to the existing macros for compile options and link options, this macro wraps the command line definitions for swiftc in a way that avoids warnings about conditional compilation flags not having values.
10 lines
271 B
CMake
10 lines
271 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_cxx_compile_definitions(USE_VULKAN=1)
|
|
endif()
|
|
endif()
|