Skip to content

Commit

Permalink
Allow setting IS_PART_OF_WORLD in command line, fix videoio plugin li…
Browse files Browse the repository at this point in the history
…nking
  • Loading branch information
mshabunin committed Jun 10, 2019
1 parent 1aefa67 commit f99f58d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmake/OpenCVModule.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ macro(ocv_add_module _name)
# add self to the world dependencies
if((NOT DEFINED OPENCV_MODULE_IS_PART_OF_WORLD
AND NOT OPENCV_MODULE_${the_module}_CLASS STREQUAL "BINDINGS"
AND (NOT DEFINED OPENCV_MODULE_${the_module}_IS_PART_OF_WORLD OR OPENCV_MODULE_${the_module}_IS_PART_OF_WORLD)
AND (NOT OPENCV_PROCESSING_EXTRA_MODULES OR NOT OPENCV_WORLD_EXCLUDE_EXTRA_MODULES)
AND (NOT BUILD_SHARED_LIBS OR NOT "x${OPENCV_MODULE_TYPE}" STREQUAL "xSTATIC"))
OR OPENCV_MODULE_IS_PART_OF_WORLD
Expand Down
4 changes: 2 additions & 2 deletions modules/videoio/cmake/plugin.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function(ocv_create_builtin_videoio_plugin name target)
target_link_libraries(${name} PRIVATE ${target})

foreach(mod opencv_videoio opencv_core opencv_imgproc opencv_imgcodecs)
target_link_libraries(${name} PRIVATE ${mod})
target_include_directories(${name} PRIVATE "${OPENCV_MODULE_${mod}_LOCATION}/include")
ocv_target_link_libraries(${name} LINK_PRIVATE ${mod})
ocv_target_include_directories(${name} PRIVATE "${OPENCV_MODULE_${mod}_LOCATION}/include")
endforeach()

set_target_properties(${name} PROPERTIES
Expand Down

0 comments on commit f99f58d

Please sign in to comment.