We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 54d80d9 commit a7c1838Copy full SHA for a7c1838
cmake/OpenCVPluginStandalone.cmake
@@ -78,8 +78,10 @@ function(ocv_create_plugin module default_name dependency_target dependency_targ
78
set_target_properties(${OPENCV_PLUGIN_NAME} PROPERTIES PREFIX "${OPENCV_PLUGIN_MODULE_PREFIX}")
79
endif()
80
81
- # Hack for Windows only, Linux/MacOS uses global symbol table (without exact .so binding)
82
- if(WIN32)
+ if(APPLE)
+ set_target_properties(${OPENCV_PLUGIN_NAME} PROPERTIES LINK_FLAGS "-undefined dynamic_lookup")
83
+ elseif(WIN32)
84
+ # Hack for Windows only, Linux/MacOS uses global symbol table (without exact .so binding)
85
find_package(OpenCV REQUIRED ${module} ${OPENCV_PLUGIN_DEPS})
86
target_link_libraries(${OPENCV_PLUGIN_NAME} PRIVATE ${OpenCV_LIBRARIES})
87
0 commit comments