mirror of
https://github.com/opencv/opencv.git
synced 2025-01-18 06:03:15 +08:00
#1532 Debug version of python bindings is excluded from install
This commit is contained in:
parent
2598736ac2
commit
77425edd11
@ -95,13 +95,15 @@ set(cvpymodules ${cv2_target})
|
||||
|
||||
if(WIN32)
|
||||
set(CVPY_PATH "Python${PYTHON_VERSION_MAJOR_MINOR}/Lib/site-packages")
|
||||
set(PYTHON_INSTALL_CONFIGURATIONS CONFIGURATIONS Release)
|
||||
else()
|
||||
set(CVPY_PATH ${PYTHON_PACKAGES_PATH})
|
||||
set(PYTHON_INSTALL_CONFIGURATIONS "")
|
||||
endif()
|
||||
|
||||
install(TARGETS ${cvpymodules}
|
||||
install(TARGETS ${cvpymodules} ${PYTHON_INSTALL_CONFIGURATIONS}
|
||||
RUNTIME DESTINATION ${CVPY_PATH} COMPONENT main
|
||||
LIBRARY DESTINATION ${CVPY_PATH} COMPONENT main
|
||||
ARCHIVE DESTINATION ${CVPY_PATH} COMPONENT main
|
||||
)
|
||||
install(FILES src2/cv.py DESTINATION ${CVPY_PATH} COMPONENT main)
|
||||
install(FILES src2/cv.py ${PYTHON_INSTALL_CONFIGURATIONS} DESTINATION ${CVPY_PATH} COMPONENT main)
|
||||
|
Loading…
Reference in New Issue
Block a user