From 9a4326012ce1dd644be390dc1345db597afb2ccf Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Fri, 19 Aug 2022 19:50:59 +0400 Subject: [PATCH] Fixed generation of plugins.hpp and disabled some proxy tests (#12637) --- cmake/developer_package/plugins/create_plugins_hpp.cmake | 3 ++- cmake/developer_package/plugins/plugins.cmake | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cmake/developer_package/plugins/create_plugins_hpp.cmake b/cmake/developer_package/plugins/create_plugins_hpp.cmake index b960a01268d..74e638f3fd0 100644 --- a/cmake/developer_package/plugins/create_plugins_hpp.cmake +++ b/cmake/developer_package/plugins/create_plugins_hpp.cmake @@ -36,7 +36,8 @@ IE_DEFINE_EXTENSION_CREATE_FUNCTION_DECLARATION(${_IE_CREATE_EXTENSION_FUNC});") # definitions set(dev_config "{") if(${mapped_dev_name}_CONFIG) - foreach(props IN LISTS ${mapped_dev_name}_CONFIG) + string(REPLACE "@" ";" dev_config_parced "${${mapped_dev_name}_CONFIG}") + foreach(props IN LISTS dev_config_parced) string(REPLACE ":" ";" props "${props}") list(GET props 0 key) diff --git a/cmake/developer_package/plugins/plugins.cmake b/cmake/developer_package/plugins/plugins.cmake index d28c6a46e81..47eb0e7f12b 100644 --- a/cmake/developer_package/plugins/plugins.cmake +++ b/cmake/developer_package/plugins/plugins.cmake @@ -338,7 +338,9 @@ function(ie_generate_plugins_hpp) # add default plugin config options if(${device_name}_CONFIG) - list(APPEND device_configs -D "${device_name}_CONFIG=${${device_name}_CONFIG}") + # Replace ; to @ in order to have list inside list + string(REPLACE ";" "@" config "${${device_name}_CONFIG}") + list(APPEND device_configs -D "${device_name}_CONFIG=${config}") endif() endforeach()