Skip to content

Commit

Permalink
Fixed OpenVINO build issue on windows needing ngraph.lib for linking
Browse files Browse the repository at this point in the history
  • Loading branch information
smistad committed Jan 13, 2021
1 parent ab9ea76 commit 5249fec
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions cmake/ExternalOpenVINO.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ ExternalProject_Add(OpenVINO
${CMAKE_COMMAND} -E copy ${FAST_EXTERNAL_BUILD_DIR}/OpenVINO/src/OpenVINO/bin/intel64/Release/MKLDNNPlugin.dll ${FAST_EXTERNAL_INSTALL_DIR}/bin/ COMMAND
${CMAKE_COMMAND} -E copy ${FAST_EXTERNAL_BUILD_DIR}/OpenVINO/src/OpenVINO/bin/intel64/Release/myriadPlugin.dll ${FAST_EXTERNAL_INSTALL_DIR}/bin/ COMMAND
${CMAKE_COMMAND} -E copy ${FAST_EXTERNAL_BUILD_DIR}/OpenVINO/src/OpenVINO/bin/intel64/Release/ngraph.dll ${FAST_EXTERNAL_INSTALL_DIR}/bin/ COMMAND
${CMAKE_COMMAND} -E copy ${FAST_EXTERNAL_BUILD_DIR}/OpenVINO/src/OpenVINO/bin/intel64/Release/ngraph.lib ${FAST_EXTERNAL_INSTALL_DIR}/lib/ COMMAND
${CMAKE_COMMAND} -E copy ${FAST_EXTERNAL_BUILD_DIR}/OpenVINO/src/OpenVINO/bin/intel64/Release/plugins.xml ${FAST_EXTERNAL_INSTALL_DIR}/bin/ COMMAND
${CMAKE_COMMAND} -E copy ${FAST_EXTERNAL_BUILD_DIR}/OpenVINO/src/OpenVINO/inference-engine/temp/tbb/bin/tbb.dll ${FAST_EXTERNAL_INSTALL_DIR}/bin/ COMMAND
${CMAKE_COMMAND} -E copy_directory ${FAST_EXTERNAL_BUILD_DIR}/OpenVINO/src/OpenVINO/inference-engine/include/ ${FAST_EXTERNAL_INSTALL_DIR}/include/openvino/ COMMAND
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ if(FAST_MODULE_OpenVINO)
add_dependencies(InferenceEngineOpenVINO OpenVINO)
target_include_directories(InferenceEngineOpenVINO PRIVATE ${FAST_INCLUDE_DIRS} ${FAST_INCLUDE_DIRS}/openvino/)
if(WIN32)
target_link_libraries(InferenceEngineOpenVINO FAST inference_engine.lib inference_engine_legacy.lib inference_engine_transformations.lib inference_engine_lp_transformations.lib)
target_link_libraries(InferenceEngineOpenVINO FAST inference_engine.lib inference_engine_legacy.lib inference_engine_transformations.lib inference_engine_lp_transformations.lib ngraph.lib)
else()
target_link_libraries(InferenceEngineOpenVINO FAST libinference_engine.so libinference_engine_legacy.so libinference_engine_transformations.so libinference_engine_lp_transformations.so)
endif()
Expand Down

0 comments on commit 5249fec

Please sign in to comment.