forked from mindspore-Ecosystem/mindspore
fix opencv install on python3.9
Signed-off-by: zhoufeng <zhoufeng54@huawei.com>
This commit is contained in:
parent
cf3213281d
commit
419da713dc
|
@ -99,13 +99,21 @@ if(ENABLE_MINDDATA)
|
||||||
COMPONENT mindspore
|
COMPONENT mindspore
|
||||||
)
|
)
|
||||||
endif()
|
endif()
|
||||||
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.2.0
|
if(PYTHON_VERSION MATCHES "3.8" OR PYTHON_VERSION MATCHES "3.7")
|
||||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_core.so.4.2 COMPONENT mindspore)
|
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.2.0
|
||||||
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.2.0
|
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_core.so.4.2 COMPONENT mindspore)
|
||||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgcodecs.so.4.2 COMPONENT mindspore)
|
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.2.0
|
||||||
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.2.0
|
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgcodecs.so.4.2 COMPONENT mindspore)
|
||||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgproc.so.4.2 COMPONENT mindspore)
|
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.2.0
|
||||||
|
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgproc.so.4.2 COMPONENT mindspore)
|
||||||
|
elseif(PYTHON_VERSION MATCHES "3.9")
|
||||||
|
install(FILES ${opencv_LIBPATH}/libopencv_core.so.4.5.1
|
||||||
|
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_core.so.4.5 COMPONENT mindspore)
|
||||||
|
install(FILES ${opencv_LIBPATH}/libopencv_imgcodecs.so.4.5.1
|
||||||
|
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgcodecs.so.4.5 COMPONENT mindspore)
|
||||||
|
install(FILES ${opencv_LIBPATH}/libopencv_imgproc.so.4.5.1
|
||||||
|
DESTINATION ${INSTALL_LIB_DIR} RENAME libopencv_imgproc.so.4.5 COMPONENT mindspore)
|
||||||
|
endif()
|
||||||
install(FILES ${tinyxml2_LIBPATH}/libtinyxml2.so.8.0.0
|
install(FILES ${tinyxml2_LIBPATH}/libtinyxml2.so.8.0.0
|
||||||
DESTINATION ${INSTALL_LIB_DIR} RENAME libtinyxml2.so.8 COMPONENT mindspore)
|
DESTINATION ${INSTALL_LIB_DIR} RENAME libtinyxml2.so.8 COMPONENT mindspore)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue