From 4dc0d6e7114e5288493aad67d27dd945f250e395 Mon Sep 17 00:00:00 2001 From: Ilya Churaev Date: Fri, 25 Mar 2022 16:02:18 +0300 Subject: [PATCH] Fixed comments after #11155 (#11202) * Fixed comments after #11155 * Add information about plugin option --- cmake/developer_package/plugins/plugins.cmake | 3 ++- docs/template_plugin/README.md | 4 +++- docs/template_plugin/src/CMakeLists.txt | 2 -- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/cmake/developer_package/plugins/plugins.cmake b/cmake/developer_package/plugins/plugins.cmake index 862c1f56682..044f558bc99 100644 --- a/cmake/developer_package/plugins/plugins.cmake +++ b/cmake/developer_package/plugins/plugins.cmake @@ -27,7 +27,7 @@ endif() # [OBJECT_LIBRARIES ] # [VERSION_DEFINES_FOR ] # [SKIP_INSTALL] -# [SKIP_REGISTRATION] +# [SKIP_REGISTRATION] Skip creation of .xml # [ADD_CLANG_FORMAT] # ) # @@ -147,6 +147,7 @@ function(ie_add_plugin) endif() endif() + # Enable for static build to generate correct plugins.hpp if(NOT IE_PLUGIN_SKIP_REGISTRATION OR NOT BUILD_SHARED_LIBS) # check that plugin with such name is not registered foreach(plugin_entry IN LISTS PLUGIN_FILES) diff --git a/docs/template_plugin/README.md b/docs/template_plugin/README.md index bed0f71a431..dda6fa29635 100644 --- a/docs/template_plugin/README.md +++ b/docs/template_plugin/README.md @@ -14,6 +14,8 @@ $ make -j8 $ cd $ mkdir /build $ cd /build -$ cmake -DOpenVINODeveloperPackage_DIR=/build .. +$ cmake -DOpenVINODeveloperPackage_DIR=/build -DENABLE_TEMPLATE_REGISTRATION=ON .. $ make -j8 ``` + +`ENABLE_TEMPLATE_REGISTRATION` cmake options registers the plugin in plugin.xml configuration file and enables install target for the plugin. diff --git a/docs/template_plugin/src/CMakeLists.txt b/docs/template_plugin/src/CMakeLists.txt index b8f518da1a2..4243b83e564 100644 --- a/docs/template_plugin/src/CMakeLists.txt +++ b/docs/template_plugin/src/CMakeLists.txt @@ -8,8 +8,6 @@ set(TARGET_NAME "openvino_template_plugin") file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp) file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp) -set(skip_plugin) - if (NOT ENABLE_TEMPLATE_REGISTRATION) # Skip install and registration of template component set(skip_plugin SKIP_INSTALL SKIP_REGISTRATION)