mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 07:04:39 +00:00
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:
parent
8a90914a2a
commit
d8c10a9c79
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
@ -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 }}
|
||||||
|
Loading…
Reference in New Issue
Block a user