From b1054a2a7d75ee3d51fdd5812149f6f624ca9671 Mon Sep 17 00:00:00 2001 From: Jeff Trull Date: Thu, 14 Nov 2024 17:02:53 -0800 Subject: [PATCH] Connect vcpkg to cmake using a toolchain file There is a mechanism to supply a "real" toolchain even when vcpkg is supplying one. Google details if required. --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 59836bb..96058d7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -66,6 +66,7 @@ jobs: # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type run: > cmake -B ${{ steps.strings.outputs.build-output-dir }} + -DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/scripts/buildsystems/vcpkg.cmake -DCMAKE_CXX_COMPILER=${{ matrix.cpp_compiler }} -DCMAKE_C_COMPILER=${{ matrix.c_compiler }} -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}