mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-24 02:29:00 +08:00
01350d0b49
* Handle core opengl32 dependency * Fix regressions for legacy config * Transform frameworks and SDK during build * Fix python3 configuration * Update versions * Drop unused dep * Fix python3 again
20 lines
811 B
CMake
20 lines
811 B
CMake
file(READ "${CMAKE_CURRENT_LIST_DIR}/usage" usage)
|
|
message(AUTHOR_WARNING "find_package(skia) is deprecated.\n${usage}")
|
|
include(CMakeFindDependencyMacro)
|
|
find_dependency(unofficial-skia)
|
|
if(NOT TARGET skia)
|
|
get_filename_component(z_vcpkg_skia_root "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
get_filename_component(z_vcpkg_skia_root "${z_vcpkg_skia_root}" PATH)
|
|
get_filename_component(z_vcpkg_skia_root "${z_vcpkg_skia_root}" PATH)
|
|
if(z_vcpkg_skia_root STREQUAL "/")
|
|
set(z_vcpkg_skia_root "")
|
|
endif()
|
|
add_library(skia INTERFACE IMPORTED)
|
|
set_target_properties(skia PROPERTIES
|
|
INTERFACE_INCLUDE_DIRECTORIES "${z_vcpkg_skia_root}/include"
|
|
INTERFACE_LINK_LIBRARIES unofficial::skia::skia
|
|
)
|
|
add_library(skia::skia ALIAS skia)
|
|
unset(z_vcpkg_skia_root)
|
|
endif()
|