ladybird/Meta/CMake/vulkan.cmake
Andrew Kaster 743f8a3a0a CMake: Add macro to wrap C++ command line definitions for swiftc
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.
2025-04-04 13:06:53 -06:00

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()