Additional cmake changes for OpenVINO build (#7579)

->unsetting the CMAKE_MAP_IMPORTED_CONFIG that was
set for OpenVINO EP for Relwithdebinfo build on
windows.

Signed-off-by: MaajidKhan <n.maajidkhan@gmail.com>

Co-authored-by: suryasidd <surya.siddharth.pemmaraju@intel.com>
This commit is contained in:
Maajid khan 2021-05-05 23:54:53 -07:00 committed by GitHub
parent 830f0b45d0
commit 5413eaa5e4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -562,6 +562,10 @@ if (onnxruntime_USE_OPENVINO)
find_package(InferenceEngine REQUIRED)
find_package(ngraph REQUIRED)
if (WIN32)
unset(CMAKE_MAP_IMPORTED_CONFIG_RELWITHDEBINFO)
endif()
if (OPENVINO_VERSION VERSION_EQUAL "2020.3")
list(APPEND OPENVINO_LIB_LIST ${InferenceEngine_LIBRARIES} ${NGRAPH_LIBRARIES} ${PYTHON_LIBRARIES})
else()