vcpkg/ports/brotli/unofficial-brotli-config.cmake
Kai Pastor 163fe7bd3d
[brotli] Export libm usage requirement, cleanup, usage (#27971)
* Simplify pkgconfig patch

* Export libm usage requirement

* Merge ios patch into install patch

* Revise portfile

* Refactor cmake wrapper into config

* Document usage

* Update versions
2022-12-02 09:39:16 -08:00

12 lines
790 B
CMake

include("${CMAKE_CURRENT_LIST_DIR}/unofficial-brotli-targets.cmake")
foreach(target IN ITEMS brotlicommon brotlidec brotlienc)
if(TARGET unofficial::brotli::${target} AND NOT TARGET unofficial::brotli::${target}-static)
_add_library(unofficial::brotli::${target}-static INTERFACE IMPORTED)
set_target_properties(unofficial::brotli::${target}-static PROPERTIES INTERFACE_LINK_LIBRARIES "unofficial::brotli::${target}")
endif()
if(NOT TARGET unofficial::brotli::${target} AND TARGET unofficial::brotli::${target}-static)
_add_library(unofficial::brotli::${target} INTERFACE IMPORTED)
set_target_properties(unofficial::brotli::${target} PROPERTIES INTERFACE_LINK_LIBRARIES "unofficial::brotli::${target}-static")
endif()
endforeach()