[Python][Build] Fix building openvino wheel on Windows (#16374)
* Add snippets dependency * - removed dependency back - added an INTEL_CPU condition on snippets configuring -> no dependency when configured w/0 CPU * Disable snippets_ngraph_functions conditionally if inference_engine_snippets are not configured --------- Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
This commit is contained in:
parent
68e067062f
commit
aa0df8e535
@ -6,7 +6,10 @@ add_subdirectory(itt)
|
||||
add_subdirectory(conditional_compilation)
|
||||
add_subdirectory(util)
|
||||
|
||||
if(ENABLE_INTEL_CPU)
|
||||
add_subdirectory(snippets)
|
||||
endif()
|
||||
|
||||
add_subdirectory(transformations)
|
||||
add_subdirectory(offline_transformations)
|
||||
add_subdirectory(low_precision_transformations)
|
||||
|
@ -8,6 +8,10 @@ set(PUBLIC_HEADERS_DIR "${CMAKE_CURRENT_SOURCE_DIR}/include")
|
||||
|
||||
set(DEPENDENCIES mock_engine)
|
||||
|
||||
list(APPEND LINK_LIBRARIES_PRIVATE
|
||||
openvino::util
|
||||
openvino::runtime::dev)
|
||||
|
||||
if(ENABLE_HETERO)
|
||||
list(APPEND DEPENDENCIES openvino_hetero_plugin)
|
||||
endif()
|
||||
@ -33,6 +37,12 @@ else()
|
||||
set(EXCLUDED_SOURCE_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/src/onnx)
|
||||
endif()
|
||||
|
||||
if (TARGET inference_engine_snippets)
|
||||
list(APPEND LINK_LIBRARIES_PRIVATE snippetsNgraphFunctions)
|
||||
else()
|
||||
list(APPEND EXCLUDED_SOURCE_PATHS ${CMAKE_CURRENT_SOURCE_DIR}/src/snippets)
|
||||
endif()
|
||||
|
||||
addIeTarget(
|
||||
NAME ${TARGET_NAME}
|
||||
TYPE STATIC
|
||||
@ -56,9 +66,7 @@ addIeTarget(
|
||||
lptNgraphFunctions
|
||||
sharedTestClasses
|
||||
PRIVATE
|
||||
openvino::util
|
||||
openvino::runtime::dev
|
||||
snippetsNgraphFunctions
|
||||
${LINK_LIBRARIES_PRIVATE}
|
||||
DEPENDENCIES
|
||||
${DEPENDENCIES}
|
||||
)
|
||||
|
@ -4,4 +4,7 @@
|
||||
|
||||
add_subdirectory(ngraph_functions)
|
||||
add_subdirectory(lpt_ngraph_functions)
|
||||
|
||||
if(TARGET inference_engine_snippets)
|
||||
add_subdirectory(snippets_ngraph_functions)
|
||||
endif()
|
||||
|
Loading…
Reference in New Issue
Block a user