mirror of
https://github.com/opencv/opencv.git
synced 2025-08-06 14:36:36 +08:00
Fix support for --without build flag on iOS/macOS build
This commit is contained in:
parent
45ee8e2532
commit
098f07664d
@ -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…
Reference in New Issue
Block a user