Fix support for --without build flag on iOS/macOS build

pull/18436/head
Giles Payne 4 years ago
parent 45ee8e2532
commit 098f07664d
  1. 4
      modules/objc/generator/CMakeLists.txt

@ -77,10 +77,8 @@ add_custom_command(
COMMENT "Generate files for Objective-C bindings"
)
add_custom_target(gen_opencv_objc_source DEPENDS ${objc_generated_files}
add_custom_target(gen_opencv_objc_source ALL DEPENDS ${objc_generated_files}
SOURCES "${OBJC_SOURCE_DIR}/generator/gen_objc.py"
"${OBJC_SOURCE_DIR}/generator/templates/cmakelists.template"
"${CMAKE_CURRENT_BINARY_DIR}/gen_objc.json"
)
add_dependencies(opencv_world gen_opencv_objc_source)

Loading…
Cancel
Save