From d8c10a9c790dedbecb1ff82240e3a3a8a8b0ae63 Mon Sep 17 00:00:00 2001 From: Sean Robinson Date: Thu, 11 Aug 2022 13:20:43 -0700 Subject: [PATCH] Add cmake_opts value to allow specifying an alternate toolchain The new "windows-latest-clang" target does not honor the CXX environment variable and uses the default MSVC compiler. This tries to tell cmake to handle things via a toolset name. Signed-off-by: Sean Robinson --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad1aa60..4324179 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,6 +58,7 @@ jobs: os: windows-latest c_compiler: clang-cl cxx_compiler: clang-cl + cmake_opts: -T ClangCL steps: @@ -66,7 +67,7 @@ jobs: - name: Configure working-directory: test - run: cmake -S . -B build + run: cmake -S . -B build ${{ matrix.cmake_opts }} env: CC: ${{ matrix.c_compiler }} CXX: ${{ matrix.cxx_compiler }}