Fixed incorrect install of pugixml in dynamic build (#8566)

This commit is contained in:
Ilya Lavrenov authored and GitHub committed 2021-11-12 22:42:27 +03:00
1 parent 57eff5c287
commit a0b5de0c88
1 file changed
+5 -2
+5 -2
View File
@@ -32,8 +32,11 @@ if(ENABLE_SYSTEM_PUGIXML)
add_library(pugixml::static ALIAS pugixml)
else()
function(ie_build_pugixml)
set(BUILD_SHARED_LIBS OFF)
add_subdirectory(pugixml EXCLUDE_FROM_ALL)
function(ie_build_pugixml_static)
set(BUILD_SHARED_LIBS OFF)
add_subdirectory(pugixml EXCLUDE_FROM_ALL)
endfunction()
ie_build_pugixml_static()
set_property(TARGET pugixml-static PROPERTY EXPORT_NAME pugixml)
openvino_developer_export_targets(COMPONENT openvino_common TARGETS pugixml::static)
ov_install_static_lib(pugixml-static openvino_common)