diff --git a/modules/python/common.cmake b/modules/python/common.cmake index 29b8816a7..cf74f8dd9 100644 --- a/modules/python/common.cmake +++ b/modules/python/common.cmake @@ -67,6 +67,7 @@ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; pri set_target_properties(${the_module} PROPERTIES LIBRARY_OUTPUT_DIRECTORY "${LIBRARY_OUTPUT_PATH}/${MODULE_INSTALL_SUBDIR}" + ARCHIVE_OUTPUT_NAME ${the_module} # prevent name conflict for python2/3 outputs PREFIX "" OUTPUT_NAME cv2 SUFFIX ${CVPY_SUFFIX})