Commit 609f33c9 authored by Victor Zverovich's avatar Victor Zverovich

Fix appveyor script

parent 2f05eaa0
......@@ -6,8 +6,9 @@ import os
env = os.environ
build = env['BUILD']
cmake_command = ['cmake', '-DFMT_EXTRA_TESTS=ON', '-DCMAKE_BUILD_TYPE=' + env['CONFIG']]
if build == 'mingw':
# Remove path to Git bin directory from $PATH because it breaks MinGW config.
env['PATH'] = env['PATH'].replace(r'C:\Program Files (x86)\Git\bin', '')
generator = ['-GMinGW Makefiles']
check_call(['cmake', '-DFMT_EXTRA_TESTS=ON', '-DCMAKE_BUILD_TYPE=' + env['CONFIG']] + generator, env=env)
cmake_command.append('-GMinGW Makefiles')
check_call(cmake_command, env=env)
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment