Fixed installation of pugixml on U22 (#12953)

This commit is contained in:
Ilya Lavrenov 2022-09-07 18:07:43 +04:00 committed by GitHub
parent 67d5652b13
commit 8922d73e7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View File

@ -7,7 +7,7 @@ import pytest
import numpy as np
# TODO: refactor into absolute paths
from ..conftest import model_path, get_model_with_template_extension
from ..conftest import model_path
from ..test_utils.test_utils import generate_image
from openvino.runtime import Model, ConstOutput, Shape

View File

@ -69,8 +69,9 @@ if(ENABLE_SYSTEM_PUGIXML)
get_target_property(target_type ${pugixml_target} TYPE)
if(target_type STREQUAL "SHARED_LIBRARY")
ie_cpack_add_component(pugixml HIDDEN)
get_target_property(pugixml_loc ${pugixml_target} IMPORTED_LOCATION_NOCONFIG)
get_target_property(pugixml_soname_loc ${pugixml_target} IMPORTED_SONAME_NOCONFIG)
get_target_property(imported_config ${pugixml_target} IMPORTED_CONFIGURATIONS)
get_target_property(pugixml_loc ${pugixml_target} IMPORTED_LOCATION_${imported_config})
get_target_property(pugixml_soname_loc ${pugixml_target} IMPORTED_SONAME_${imported_config})
get_filename_component(pugixml_dir "${pugixml_loc}" DIRECTORY)
install(FILES "${pugixml_loc}"
"${pugixml_dir}/${pugixml_soname_loc}"