-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
module library type for IE plugins, extensions #3656
Conversation
6a15c2b
to
80ec2fc
Compare
Blocked by opencv |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
@@ -52,7 +52,7 @@ function(ie_add_plugin) | |||
add_cpplint_target(${obj_lib}_cpplint FOR_TARGETS ${obj_lib}) | |||
endforeach() | |||
|
|||
add_library(${IE_PLUGIN_NAME} SHARED ${input_files}) | |||
add_library(${IE_PLUGIN_NAME} MODULE ${input_files}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
MODULE is considered as library object on Windows. This means here and for other modules
LIBRARY DESTINATION shall be defined to IE_CPACK_RUNTIME_PATH on Windows to preserve current install location for these libs.
LIBRARY DESTINATION ${IE_CPACK_LIBRARY_PATH} COMPONENT ${install_component}) |
LIBRARY DESTINATION ${IE_CPACK_RUNTIME_PATH} COMPONENT ${install_component}
* CMAKE: Added MODULE linker flags * Fixed plugins.xml s * Use module instead of shared library * Fixes * tab 2 spaces * Renamed get_shared_library_name to ie_plugin_get_file_name
Test with openvinotoolkit/testdata#4
It should not break compatibility since:
extensions.dylib
is still supported.DYLD_LIBRARY_PATH
andLD_LIBRARY_PATH
to the same values.