From 9d9411555fa87321a1e36a39c8993c224f66e2fd Mon Sep 17 00:00:00 2001 From: Michael Pratt Date: Wed, 6 Aug 2014 02:31:30 -0400 Subject: [PATCH] Place Python library out in dedicated folder Place the built Python module library in a dedicated folder inside of lib/. This ensures that even if the Python 2 and Python 3 module names conflict, they will not overwrite one another. --- modules/python/common.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/modules/python/common.cmake b/modules/python/common.cmake index 7d96406..c37ae66 100644 --- a/modules/python/common.cmake +++ b/modules/python/common.cmake @@ -71,6 +71,7 @@ execute_process(COMMAND ${PYTHON_EXECUTABLE} -c "import distutils.sysconfig; pri OUTPUT_STRIP_TRAILING_WHITESPACE) set_target_properties(${the_module} PROPERTIES + LIBRARY_OUTPUT_DIRECTORY "${LIBRARY_OUTPUT_PATH}/${MODULE_NAME}" PREFIX "" OUTPUT_NAME cv2 SUFFIX ${CVPY_SUFFIX}) -- 2.7.4