diff --git a/Makefile.win b/Makefile.win index 24ae88e6..62794816 100644 --- a/Makefile.win +++ b/Makefile.win @@ -100,7 +100,7 @@ C_SRC_HEADER_TXT="$(C_SRC)/headers.txt" HEADERS_TXT="$(CMAKE_OPENCV_BUILD_DIR)/modules/python_bindings_generator/headers.txt" !ENDIF -!IFDEF +!IFDEF CMAKE_TOOLCHAIN_FILE CMAKE_WIN_FINAL_OPTIONS_DEFINITIVE_EDITION_V2 = -G "$(CMAKE_GENERATOR_TYPE)" -A "$(MSBUILD_PLATFORM)" $(CMAKE_WIN_FINAL_OPTIONS_DEFINITIVE_EDITION) -D CMAKE_TOOLCHAIN_FILE="$(CMAKE_TOOLCHAIN_FILE)" !ELSE CMAKE_WIN_FINAL_OPTIONS_DEFINITIVE_EDITION_V2 = -G "$(CMAKE_GENERATOR_TYPE)" $(CMAKE_WIN_FINAL_OPTIONS_DEFINITIVE_EDITION) @@ -206,6 +206,6 @@ $(EVISION_SO): opencv -D EVISION_ENABLE_CONTRIB="$(EVISION_ENABLE_CONTRIB)" \ $(CMAKE_CONFIGURE_FLAGS) "$(MAKEDIR)" && \ cmake --build . $(CMAKE_BUILD_PARAMETER) && \ - cmake --install . --config "$(CMAKE_BUILD_TYPE) \ + cmake --install . --config "$(CMAKE_BUILD_TYPE)" \ ) !ENDIF