Skip to content

Commit 1d6e034

Browse files
author
Andrey Senyaev
committed
Fixed an issue when machine:X86 was defined on Windows x64
1 parent 40e0e3b commit 1d6e034

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

setup.py

+6
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ def main():
151151
"-DBUILD_PERF_TESTS=OFF",
152152
"-DBUILD_DOCS=OFF",
153153
]
154+
+ (
155+
# If it is not defined 'linker flags: /machine:X86' on Windows x64
156+
["-DCMAKE_GENERATOR_PLATFORM=x64"]
157+
if x64 and sys.platform == "win32"
158+
else []
159+
)
154160
+ (
155161
["-DOPENCV_EXTRA_MODULES_PATH=" + os.path.abspath("opencv_contrib/modules")]
156162
if build_contrib

0 commit comments

Comments
 (0)