summarylogtreecommitdiffstats
path: root/msvc-cmake.sh
blob: ee948c356465af6f1d4baacccd6cb20299f8313c (plain)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

if echo -- "$@" | grep -Ewq "(--build|--install|-E|--system-information)" ; then
    cmake "$@"
else
    cmake \
        -DCMAKE_TOOLCHAIN_FILE=/opt/msvc/cmake/toolchain-@PROCESSOR@.cmake \
        -DCMAKE_CROSSCOMPILING_EMULATOR=/usr/bin/wine \
        "$@"
fi