Skip to content

Commit

Permalink
AppVeyor: Use ninja for the build
Browse files Browse the repository at this point in the history
Ninja seems to be much faster for the build than the
previous build system, partially because it uses all
of the cores on AppVeyor.

Ninja is installed with chocolatey, and the Visual Studio 2017
environment variables are set with the `vcvarsall.bat` script.

Verbosity detail was also turned off. This may have caused a
significant speed increase as well.

Signed-off-by: Patrick Avery <[email protected]>
  • Loading branch information
psavery committed Sep 23, 2018
1 parent 7fb04e8 commit 6eeae1b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ init:
environment:
PATH: '%PATH%;%QTDIR%\bin'
matrix:
- CMAKE_GENERATOR: '"Visual Studio 15 2017 Win64"'
- CMAKE_GENERATOR: '"Ninja"'
QTDIR: C:\Qt\5.6\msvc2015_64
platform: x64
build_script:
Expand All @@ -29,6 +29,10 @@ build_script:
cd openchemistry-build
choco install ninja
call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\VC\Auxiliary\Build\vcvarsall.bat" amd64
cmake -G %CMAKE_GENERATOR% ../openchemistry
cmake --build . --target avogadrolibs --config Release -- /verbosity:detailed
cmake --build . --target avogadrolibs --config Release

0 comments on commit 6eeae1b

Please sign in to comment.