build: use vcpkg for most dependencies on macos

This commit is contained in:
Bruno Alexandre Rosa 2025-09-21 20:37:52 -03:00
parent 217646f031
commit 97db6a3951
2 changed files with 38 additions and 11 deletions

View file

@ -48,8 +48,8 @@ if(USE_CCACHE)
endif()
endif()
if(WIN32)
# Use vcpkg toolchain on Windows
if(WIN32 OR APPLE)
# Use vcpkg toolchain on Windows and macOS
set(CMAKE_TOOLCHAIN_FILE
${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake
CACHE STRING "Vcpkg toolchain file"