From a4d164eda46487e88602add075663c76d952ba1a Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Fri, 18 Mar 2022 13:13:33 +0300 Subject: [PATCH] Fixed macro for plugin registration. Register only required plugins (#11031) --- cmake/developer_package/plugins/plugins.cmake | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmake/developer_package/plugins/plugins.cmake b/cmake/developer_package/plugins/plugins.cmake index a630d6c354e..f8d73433bf9 100644 --- a/cmake/developer_package/plugins/plugins.cmake +++ b/cmake/developer_package/plugins/plugins.cmake @@ -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")