mirror of
https://github.com/opencv/opencv.git
synced 2025-06-13 04:52:53 +08:00
cmake: fix installation of python extra code
This commit is contained in:
parent
15ba3e123f
commit
c82e4596e4
@ -232,8 +232,9 @@ if(NOT OPENCV_SKIP_PYTHON_LOADER)
|
|||||||
if(extra_py_files)
|
if(extra_py_files)
|
||||||
list(SORT extra_py_files)
|
list(SORT extra_py_files)
|
||||||
foreach(f ${extra_py_files})
|
foreach(f ${extra_py_files})
|
||||||
|
get_filename_component(__dir "${f}" DIRECTORY)
|
||||||
configure_file("${__base}/${f}" "${__loader_path}/cv2/_extra_py_code/${f}" COPYONLY)
|
configure_file("${__base}/${f}" "${__loader_path}/cv2/_extra_py_code/${f}" COPYONLY)
|
||||||
install(FILES "${__base}/${f}" DESTINATION "${OPENCV_PYTHON_INSTALL_PATH}/cv2/_extra_py_code/${f}" COMPONENT python)
|
install(FILES "${__base}/${f}" DESTINATION "${OPENCV_PYTHON_INSTALL_PATH}/cv2/_extra_py_code/${__dir}/" COMPONENT python)
|
||||||
endforeach()
|
endforeach()
|
||||||
else()
|
else()
|
||||||
message(WARNING "Module ${m} has no .py files in misc/python/package")
|
message(WARNING "Module ${m} has no .py files in misc/python/package")
|
||||||
|
Loading…
Reference in New Issue
Block a user