alandefreitas / cpp-actions

GitHub Actions for C++ Libraries
https://alandefreitas.github.io/cpp-actions/
Boost Software License 1.0
17 stars 2 forks source link

clang-cl actions don't use clang-cl with CMake #5

Closed cmazakas closed 7 months ago

cmazakas commented 7 months ago

The CMAKE_*_COMPILER values are correct but to coerce CMake into using clang-cl, one must append -T ClangCL in the invocation.

I hacked this in:

extra-args: -D Boost_VERBOSE=ON -D BUILD_TESTING=ON -D BOOST_SRC_DIR="../boost-root" ${{ matrix.compiler == 'clang-cl' && '-T ClangCL' || '' }}