diff --git a/python/setup.py b/python/setup.py index 457d15eba..21354182e 100644 --- a/python/setup.py +++ b/python/setup.py @@ -157,10 +157,11 @@ def build_extension(self, ext): if 'win32' == sys.platform: cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY_%s=' % cfg.upper() + extdir, '-DCMAKE_RUNTIME_OUTPUT_DIRECTORY_%s=' % cfg.upper() + extdir] - if sys.maxsize > 2**32: - cmake_args += ['-A', 'x64'] if cmake_gen is not None: cmake_args += ['-G', cmake_gen] + elif sys.maxsize > 2**32: + cmake_args += ['-A', 'x64'] + else: cmake_args += ['-DCMAKE_LIBRARY_OUTPUT_DIRECTORY=' + extdir]