CMake: Set SKCMS_API to default visibility for non-vcpkg skia as well

This commit is contained in:
Andrew Kaster 2025-07-02 21:31:07 -06:00 committed by Tim Flynn
commit 5878715889
Notes: github-actions[bot] 2025-07-07 10:48:32 +00:00

View file

@ -30,6 +30,7 @@ else()
pkg_check_modules(skia skia=${SKIA_REQUIRED_VERSION} REQUIRED IMPORTED_TARGET skia)
set(SKIA_TARGET PkgConfig::skia)
set_property(TARGET PkgConfig::skia APPEND PROPERTY INTERFACE_COMPILE_DEFINITIONS "SKCMS_API=__attribute__((visibility(\"default\")))")
endif()
swizzle_target_properties_for_swift(${SKIA_TARGET})
add_library(skia ALIAS ${SKIA_TARGET})