mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
After making no progress on this for a very long time, let's acknowledge it's not going anywhere and remove it from the codebase.
18 lines
778 B
CMake
18 lines
778 B
CMake
# Finds the BlocksRuntime library
|
|
# On Apple platforms, this does not exist and is folded into other System libraries
|
|
|
|
find_library(BLOCKS_RUNTIME NAMES BlocksRuntime)
|
|
if (BLOCKS_RUNTIME)
|
|
if (NOT TARGET BlocksRuntime::BlocksRuntime)
|
|
add_library(BlocksRuntime::BlocksRuntime IMPORTED UNKNOWN)
|
|
message(STATUS "Found BlocksRuntime: ${BLOCKS_RUNTIME}")
|
|
cmake_path(GET BLOCKS_RUNTIME PARENT_PATH _BLOCKS_RUNTIME_DIR)
|
|
set_target_properties(BlocksRuntime::BlocksRuntime PROPERTIES
|
|
IMPORTED_LOCATION "${BLOCKS_RUNTIME}"
|
|
INTERFACE_LINK_DIRECTORIES "${_BLOCKS_RUNTIME_DIR}"
|
|
INTERFACE_COMPILE_OPTIONS "$<$<COMPILE_LANGUAGE:C,CXX>:-fblocks>"
|
|
)
|
|
endif()
|
|
set(BlocksRuntime_FOUND TRUE)
|
|
endif()
|