if (DEFINED BUILD_SHARED_LIBS OR DEFINED CACHE{BUILD_SHARED_LIBS})
    set(OLD_BUILD_SHARED_LIBS ${BUILD_SHARED_LIBS})
else()
    set(OLD_BUILD_SHARED_LIBS OFF)
endif()

set(BUILD_SHARED_LIBS OFF CACHE INTERNAL "")
add_subdirectory(Vendor/lz4/build/cmake)

set(BUILD_SHARED_LIBS ${OLD_BUILD_SHARED_LIBS} CACHE INTERNAL "")
add_library(lz4 INTERFACE)

target_link_libraries(lz4 INTERFACE lz4_static)
target_include_directories(lz4 INTERFACE "${PR_VENDOR_DIR}/lz4/lib")

