From 4e8e46135bc624380d1f355b10c167c5ed1f107d Mon Sep 17 00:00:00 2001 From: yuangongji Date: Mon, 20 Jan 2020 21:15:26 +0800 Subject: [PATCH] test-export: compatible with all versions of visual studio (cherry picked from commit 9adc9f149657212f65f05750b4f94ea3b1166aec) --- test-export/test-export.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test-export/test-export.py b/test-export/test-export.py index 3be8193f..d71e5dba 100644 --- a/test-export/test-export.py +++ b/test-export/test-export.py @@ -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)