Fixed macro for plugin registration. Register only required plugins (#11031)

This commit is contained in:
Ilya Churaev 2022-03-18 13:13:33 +03:00 committed by GitHub
parent 931313c03b
commit a4d164eda4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -219,6 +219,10 @@ macro(ie_register_plugins_dynamic)
endif()
list(GET name 0 device_name)
list(GET name 1 name)
# Skip plugins which don't exist in the possible plugins list
if (IE_REGISTER_POSSIBLE_PLUGINS AND NOT name IN_LIST IE_REGISTER_POSSIBLE_PLUGINS)
continue()
endif()
# create plugin file
set(config_file_name "${CMAKE_BINARY_DIR}/plugins/${device_name}.xml")