Fixed CPU build (#18805)
This commit is contained in:
parent
af8e41bcea
commit
7be660e551
@ -282,7 +282,7 @@ function(set_ie_threading_interface_for TARGET_NAME)
|
|||||||
foreach(include_directory IN LISTS include_directories)
|
foreach(include_directory IN LISTS include_directories)
|
||||||
# cannot include /usr/include headers as SYSTEM
|
# cannot include /usr/include headers as SYSTEM
|
||||||
if(NOT "${include_directory}" MATCHES "^/usr.*$")
|
if(NOT "${include_directory}" MATCHES "^/usr.*$")
|
||||||
target_include_directories(${TARGET_NAME} SYSTEM BEFORE
|
target_include_directories(${TARGET_NAME} SYSTEM
|
||||||
${LINK_TYPE} $<BUILD_INTERFACE:${include_directory}>)
|
${LINK_TYPE} $<BUILD_INTERFACE:${include_directory}>)
|
||||||
else()
|
else()
|
||||||
set(_system_library ON)
|
set(_system_library ON)
|
||||||
|
@ -102,13 +102,10 @@ elseif(RISCV64)
|
|||||||
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME "openvino_riscv_cpu_plugin")
|
set_target_properties(${TARGET_NAME} PROPERTIES OUTPUT_NAME "openvino_riscv_cpu_plugin")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set_ie_threading_interface_for(${TARGET_NAME})
|
|
||||||
|
|
||||||
ie_mark_target_as_cc(${TARGET_NAME})
|
ie_mark_target_as_cc(${TARGET_NAME})
|
||||||
|
|
||||||
target_link_libraries(${TARGET_NAME} PRIVATE dnnl
|
target_link_libraries(${TARGET_NAME} PRIVATE dnnl
|
||||||
ov_shape_inference
|
ov_shape_inference
|
||||||
openvino::pugixml
|
|
||||||
inference_engine_snippets)
|
inference_engine_snippets)
|
||||||
|
|
||||||
target_compile_definitions(${TARGET_NAME} PRIVATE IMPLEMENT_INFERENCE_EXTENSION_API)
|
target_compile_definitions(${TARGET_NAME} PRIVATE IMPLEMENT_INFERENCE_EXTENSION_API)
|
||||||
@ -129,6 +126,10 @@ cross_compiled_file(${TARGET_NAME}
|
|||||||
NAMESPACE InferenceEngine::Extensions::Cpu::XARCH
|
NAMESPACE InferenceEngine::Extensions::Cpu::XARCH
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# system dependencies must go last
|
||||||
|
target_link_libraries(${TARGET_NAME} PRIVATE openvino::pugixml)
|
||||||
|
set_ie_threading_interface_for(${TARGET_NAME})
|
||||||
|
|
||||||
# must be called after all target_link_libraries
|
# must be called after all target_link_libraries
|
||||||
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
|
ie_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user