Use CMakePresets

Added in 3.19: https://cmake.org/cmake/help/v3.19/manual/cmake-presets.7.html
This commit is contained in:
tooomm 2026-08-02 17:24:21 +02:00
parent 6766b0af89
commit 6c6a2ee7c2
4 changed files with 141 additions and 45 deletions

View file

@ -48,12 +48,7 @@ if(USE_CCACHE)
endif()
endif()
if(WIN32 OR USE_VCPKG)
# Use vcpkg toolchain on Windows (and on macOS in CI)
set(CMAKE_TOOLCHAIN_FILE
${CMAKE_CURRENT_SOURCE_DIR}/vcpkg/scripts/buildsystems/vcpkg.cmake
CACHE STRING "Vcpkg toolchain file"
)
if(WIN32 or APPLE)
# Qt path set by user or env var
if(QTDIR
OR DEFINED ENV{QTDIR}