# https://vcpkg.io/en/docs/users/triplets.html

set(VCPKG_TARGET_ARCHITECTURE arm64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)

set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES arm64)

set(VCPKG_C_FLAGS "-fvisibility=hidden -DQT_NAMESPACE=ClapPluginsQt")
set(VCPKG_CXX_FLAGS "-fvisibility=hidden -fvisibility-inlines-hidden -DQT_NAMESPACE=ClapPluginsQt")

# if(NOT PORT MATCHES "harfbuzz")
#     # harfbuzz is badly packaged for now, so we also make the debug build
#     # https://github.com/microsoft/vcpkg/issues/22680
#     set(VCPKG_BUILD_TYPE release)
# endif()