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 <sean.robinson@scottsdalecc.edu>
This commit is contained in:
Sean Robinson 2022-08-11 13:20:43 -07:00
parent 8a90914a2a
commit d8c10a9c79

View File

@ -58,6 +58,7 @@ jobs:
os: windows-latest os: windows-latest
c_compiler: clang-cl c_compiler: clang-cl
cxx_compiler: clang-cl cxx_compiler: clang-cl
cmake_opts: -T ClangCL
steps: steps:
@ -66,7 +67,7 @@ jobs:
- name: Configure - name: Configure
working-directory: test working-directory: test
run: cmake -S . -B build run: cmake -S . -B build ${{ matrix.cmake_opts }}
env: env:
CC: ${{ matrix.c_compiler }} CC: ${{ matrix.c_compiler }}
CXX: ${{ matrix.cxx_compiler }} CXX: ${{ matrix.cxx_compiler }}