mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 15:07:55 +08:00
163fe7bd3d
* Simplify pkgconfig patch * Export libm usage requirement * Merge ios patch into install patch * Revise portfile * Refactor cmake wrapper into config * Document usage * Update versions
12 lines
790 B
CMake
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()
|