In newer versions of CMake, the architecture is specified
using the “-A” parameter.
- .cmake-common
- .win-build
script:
- - cmake -DCMAKE_PREFIX_PATH=C:/ -G "Visual Studio 15 2017 Win64" -DCMAKE_BUILD_TYPE=Debug -DDBUS_ENABLE_VERBOSE_MODE=OFF -DDBUS_ENABLE_INTRUSIVE_TESTS=ON -S . -B build
+ - cmake -DCMAKE_PREFIX_PATH=C:/ -G "Visual Studio 15 2017" -A x64 -DCMAKE_BUILD_TYPE=Debug -DDBUS_ENABLE_VERBOSE_MODE=OFF -DDBUS_ENABLE_INTRUSIVE_TESTS=ON -S . -B build
- cmake --build build --config Debug
- cmake --install build --config Debug
# FIXME: a few tests timeout on gitlab runner for unknown reason
# RUN C:\TEMP\expat.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
RUN git clone --depth 1 --branch R_2_4_2 https://github.com/libexpat/libexpat
WORKDIR "/libexpat/expat"
-RUN cmake --install-prefix c:/ -G '"Visual Studio 15 2017 Win64"' .
+RUN cmake --install-prefix c:/ -G '"Visual Studio 15 2017"' -A x64 .
RUN cmake --build . --config Release
RUN cmake --install . --config Release