Meta/CMake: Use standard attribute syntax in skia/portfile.cmake

Fixes this Skia build error on Windows: https://github.com/microsoft/vcpkg/issues/43192
This commit is contained in:
stasoid 2025-01-10 17:52:41 +05:00 committed by Andrew Kaster
parent 51434c2ed0
commit ac3d9739b1
Notes: github-actions[bot] 2025-02-05 22:44:55 +00:00

View file

@ -279,7 +279,7 @@ set(SKIA_CXX_FLAGS_REL "${VCPKG_COMBINED_CXX_FLAGS_RELEASE}")
if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic")
foreach (str IN ITEMS SKIA_CXX_FLAGS_DBG SKIA_CXX_FLAGS_REL)
string(APPEND ${str} " -DSKCMS_API=__attribute__((visibility(\\\\\\\"default\\\\\\\")))")
string(APPEND ${str} " -DSKCMS_API=[[gnu::visibility(\\\\\\\"default\\\\\\\")]]")
endforeach()
endif()