From d2e5f90f324b7e96332f3de00ad37833a7942520 Mon Sep 17 00:00:00 2001 From: Alexander Alekhin Date: Fri, 26 Feb 2016 17:08:07 +0300 Subject: [PATCH] cmake: fix cv2.lib conflict for python2/3 bindings (MSVS) --- modules/python/common.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/python/common.cmake b/modules/python/common.cmake index 29b8816a77..cf74f8dd95 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}) -- GitLab