mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 12:14:26 +00:00
Fix appveyor script
This commit is contained in:
parent
2f05eaa07d
commit
609f33c94a
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user