Fixed macro for plugin registration. Register only required plugins (#11031)
This commit is contained in:
parent
931313c03b
commit
a4d164eda4
@ -219,6 +219,10 @@ macro(ie_register_plugins_dynamic)
|
|||||||
endif()
|
endif()
|
||||||
list(GET name 0 device_name)
|
list(GET name 0 device_name)
|
||||||
list(GET name 1 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
|
# create plugin file
|
||||||
set(config_file_name "${CMAKE_BINARY_DIR}/plugins/${device_name}.xml")
|
set(config_file_name "${CMAKE_BINARY_DIR}/plugins/${device_name}.xml")
|
||||||
|
Loading…
Reference in New Issue
Block a user