cmake: fix cv2.lib conflict for python2/3 bindings (MSVS)

This commit is contained in:
Alexander Alekhin 2016-02-26 17:08:07 +03:00
parent 81f21e6e6c
commit d2e5f90f32

View File

@ -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})