diff --git a/Makefile b/Makefile index 8771ff24..84b3fc68 100644 --- a/Makefile +++ b/Makefile @@ -194,8 +194,6 @@ $(HEADERS_TXT): $(CONFIGURATION_PRIVATE_HPP) -D BUILD_ZLIB=ON \ -D BUILD_opencv_gapi=OFF \ -D BUILD_opencv_apps=OFF \ - -D CMAKE_C_FLAGS=-DPNG_ARM_NEON_OPT=0 \ - -D CMAKE_CXX_FLAGS=-DPNG_ARM_NEON_OPT=0 \ $(CMAKE_OPTIONS) "$(OPENCV_DIR)" && \ if [ "$(MIX_TARGET)" = "ios" ]; then \ xcodebuild BITCODE_GENERATION_MODE=bitcode IPHONEOS_DEPLOYMENT_TARGET=$(IPHONEOS_DEPLOYMENT_TARGET) ARCHS=$(IPHONEOS_ARCH) -sdk iphoneos -configuration $(CMAKE_BUILD_TYPE) -parallelizeTargets -jobs $(DEFAULT_JOBS) -target ALL_BUILD build ; \ diff --git a/Makefile.win b/Makefile.win index 4136a279..2e27c1fe 100644 --- a/Makefile.win +++ b/Makefile.win @@ -166,8 +166,6 @@ $(HEADERS_TXT): $(CONFIGURATION_PRIVATE_HPP) -D BUILD_ZLIB=ON \ -D BUILD_opencv_gapi=OFF \ -D BUILD_opencv_apps=OFF \ - -D CMAKE_C_FLAGS="/D PNG_ARM_NEON_OPT=0" \ - -D CMAKE_CXX_FLAGS="/D PNG_ARM_NEON_OPT=0" \ $(CMAKE_WIN_FINAL_OPTIONS_DEFINITIVE_EDITION_V2) "$(OPENCV_DIR)" && \ cmake --build . $(CMAKE_BUILD_PARAMETER) \ )