Skip to content

Commit abdec57

Browse files
author
archibate
committed
config release only for win
1 parent e2b9e9f commit abdec57

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

build.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@
3333

3434

3535
args = []
36+
build_args = []
37+
38+
if sys.platform == 'win32':
39+
build_args.append(['--config', ap.config])
3640

3741
args.append('-DPYTHON_EXECUTABLE=' + sys.executable)
3842

@@ -69,4 +73,4 @@
6973
print('*** cmake arguments:', args)
7074
subprocess.check_call(['cmake', '-B', 'build'] + args)
7175
print('*** now building project...')
72-
subprocess.check_call(['cmake', '--build', 'build', '--config', ap.config, '--parallel'])
76+
subprocess.check_call(['cmake', '--build', 'build', '--parallel'] + build_args)

0 commit comments

Comments
 (0)