Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[RISC-V][Tests] Fixed ov_cpu_unit_tests linking with SHL (#26721)

Alexandra Sidorovaa683ae60ae26
diff --git a/src/plugins/intel_cpu/tests/unit/CMakeLists.txt b/src/plugins/intel_cpu/tests/unit/CMakeLists.txt
index a3cf33c347f..63441b50473 100644
--- a/src/plugins/intel_cpu/tests/unit/CMakeLists.txt
+++ b/src/plugins/intel_cpu/tests/unit/CMakeLists.txt
@@ -34,6 +34,10 @@ else()
set(MLAS_LIBRARY "mlas")
endif()
+if (ENABLE_SHL_FOR_CPU)
+ set(SHL_LIBRARY "shl")
+endif()
+
ov_add_test_target(
NAME ${TARGET_NAME}
ROOT ${CMAKE_CURRENT_SOURCE_DIR}
@@ -61,6 +65,7 @@ ov_add_test_target(
ov_snippets_models
snippets_test_utils
${MLAS_LIBRARY}
+ ${SHL_LIBRARY}
ADD_CPPLINT
LABELS
OV UNIT CPU