Skip to content

Commit 9f43e0c

Browse files
authored
[NPU] Remove npu_common as public target (#33153)
### Details: - *Remove npu_common as public target* ### Tickets: - *CVS-173682* Signed-off-by: Bogdan Pereanu <bogdan.pereanu@intel.com>
1 parent 35c441c commit 9f43e0c

File tree

6 files changed

+6
-14
lines changed

6 files changed

+6
-14
lines changed

src/plugins/intel_npu/src/backend/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ target_include_directories(${TARGET_NAME}
2323

2424
target_link_libraries(${TARGET_NAME}
2525
PRIVATE
26+
openvino_npu_common
2627
openvino::npu_al
27-
openvino::npu_common
2828
)
2929

3030
#

src/plugins/intel_npu/src/common/CMakeLists.txt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,12 @@
22
# SPDX-License-Identifier: Apache-2.0
33
#
44

5-
set(TARGET_NAME openvino_npu_common)
5+
set(TARGET_NAME "openvino_npu_common")
66

77
file(GLOB_RECURSE SOURCES *.cpp *.hpp *.h)
88
source_group(TREE ${CMAKE_CURRENT_SOURCE_DIR} FILES ${SOURCES})
99

1010
add_library(${TARGET_NAME} STATIC ${SOURCES})
11-
add_library(openvino::npu_common ALIAS ${TARGET_NAME})
12-
set_target_properties(${TARGET_NAME} PROPERTIES EXPORT_NAME npu_common)
1311

1412
target_include_directories(${TARGET_NAME}
1513
PUBLIC
@@ -29,8 +27,4 @@ ov_add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME})
2927
#
3028
# targets install
3129
#
32-
ov_install_static_lib(${TARGET_NAME} ${NPU_PLUGIN_COMPONENT})
33-
34-
ov_developer_package_export_targets(TARGET openvino::npu_common
35-
INSTALL_INCLUDE_DIRECTORIES
36-
${CMAKE_CURRENT_SOURCE_DIR}/include/)
30+
ov_install_static_lib(${TARGET_NAME} ${NPU_INTERNAL_COMPONENT})

src/plugins/intel_npu/src/compiler_adapter/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ target_include_directories(${TARGET_NAME}
2323

2424
target_link_libraries(${TARGET_NAME}
2525
PRIVATE
26+
openvino_npu_common
2627
openvino::npu_al
27-
openvino::npu_common
2828
openvino::xml_util
2929
)
3030

src/plugins/intel_npu/src/plugin/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ ov_add_clang_format_target(${TARGET_NAME}_clang FOR_TARGETS ${TARGET_NAME})
2424

2525
target_link_libraries(${TARGET_NAME}
2626
PRIVATE
27+
openvino_npu_common
2728
openvino_npu_driver_compiler_adapter
2829
openvino_npu_level_zero_backend
2930
)
@@ -35,7 +36,6 @@ endif()
3536
target_link_libraries(${TARGET_NAME}
3637
PRIVATE
3738
openvino::npu_al
38-
openvino::npu_common
3939
openvino::reference
4040
)
4141

src/plugins/intel_npu/tests/functional/CMakeLists.txt

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ list(APPEND OPTIONAL_FUNC_TESTS_INCLUDES
2222
"${OpenVINO_SOURCE_DIR}/src/plugins/intel_npu/src/plugin/include"
2323
)
2424

25-
list(APPEND OPTIONAL_FUNC_TESTS_LIBS openvino_npu_driver_compiler_adapter
25+
list(APPEND OPTIONAL_FUNC_TESTS_LIBS openvino_npu_common openvino_npu_driver_compiler_adapter
2626
openvino_npu_level_zero_backend openvino_npu_zero_utils openvino_npu_logger_utils)
2727

2828
ov_add_test_target(
@@ -50,7 +50,6 @@ ov_add_test_target(
5050
openvino::format_reader
5151
openvino::reference
5252
openvino::runtime
53-
openvino::npu_common
5453
openvino::npu_al)
5554

5655
if(WIN32)

src/plugins/intel_npu/tests/unit/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ set(MANDATORY_UNIT_TESTS_LIBS
1111
"openvino::gtest_main"
1212
"openvino::runtime"
1313
"openvino::reference"
14-
"openvino::npu_common"
1514
"openvino::npu_al"
1615
"openvino::npu_logger_utils"
1716
)

0 commit comments

Comments
 (0)