Files
ladybird/Meta/CMake/fontconfig.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

8 lines
191 B
CMake

include_guard()
if (NOT APPLE AND NOT ANDROID)
find_package(Fontconfig REQUIRED)
set(HAS_FONTCONFIG ON CACHE BOOL "" FORCE)
add_cxx_compile_definitions(USE_FONTCONFIG=1)
endif()