File tree Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Expand file tree Collapse file tree 1 file changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -162,18 +162,12 @@ def main():
162
162
# Raw paths relative to sourcetree root.
163
163
files_outside_package_dir = {"cv2" : ["LICENSE.txt" , "LICENSE-3RD-PARTY.txt" ]}
164
164
165
- if os .name == "nt" :
166
- vs_env = os .environ .get ("VISUAL_STUDIO" )
167
- if vs_env == "17" :
168
- generator_name = "Visual Studio 17 2022"
169
- arch = "x64" if is64 else "Win32"
170
- ci_cmake_generator = ["-G" , generator_name , "-A" , arch ]
171
- else :
172
- generator_name = "Visual Studio 14" + (" Win64" if is64 else "" )
173
- ci_cmake_generator = ["-G" , generator_name ]
174
- else :
175
- ci_cmake_generator = ["-G" , "Unix Makefiles" ]
176
-
165
+ ci_cmake_generator = (
166
+ ["-G" , "Visual Studio 14" + (" Win64" if is64 else "" )]
167
+ if os .name == "nt"
168
+ else ["-G" , "Unix Makefiles" ]
169
+ )
170
+
177
171
cmake_args = (
178
172
(ci_cmake_generator if is_CI_build else [])
179
173
+ [
@@ -201,8 +195,6 @@ def main():
201
195
"-DBUILD_DOCS=OFF" ,
202
196
"-DPYTHON3_LIMITED_API=ON" ,
203
197
"-DBUILD_OPENEXR=ON" ,
204
- "-DWITH_OBSENSOR=OFF" ,
205
- "-DWITH_MEDIAFOUNDATION=OFF" ,
206
198
]
207
199
+ (
208
200
# CMake flags for windows/arm64 build
You can’t perform that action at this time.
0 commit comments