Skip to content

Commit

Permalink
test-export: compatible with all versions of visual studio
Browse files Browse the repository at this point in the history
  • Loading branch information
ygj6 authored and azat committed Jan 24, 2020
1 parent 1a99f9b commit 9adc9f1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test-export/test-export.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ def link_and_run(link, code):
Returns 0 if links and runs successfully, otherwise 1.
"""
exec_cmd("cmake --build . --target clean", True)
generator = ''
arch = ''
if platform.system() == "Windows":
generator = '-G "Visual Studio 15 2017 Win64"'
arch = '-A x64'
cmd = 'cmake .. %s -DEVENT__LINK_COMPONENT=%s -DEVENT__CODE_COMPONENT=%s' % (
generator, link, code)
arch, link, code)
if link_type == "static":
cmd = "".join([cmd, " -DLIBEVENT_STATIC_LINK=1"])
r = exec_cmd(cmd, True)
Expand Down

0 comments on commit 9adc9f1

Please sign in to comment.