15 lines
752 B
Diff
15 lines
752 B
Diff
diff --git a/modules/python/bindings/CMakeLists.txt b/modules/python/bindings/CMakeLists.txt
|
|
index 73c67aa..a71c297 100644
|
|
--- a/modules/python/bindings/CMakeLists.txt
|
|
+++ b/modules/python/bindings/CMakeLists.txt
|
|
@@ -20,7 +20,8 @@ endforeach()
|
|
set(opencv_hdrs "")
|
|
set(opencv_userdef_hdrs "")
|
|
foreach(m ${OPENCV_PYTHON_MODULES})
|
|
- ocv_list_filter(OPENCV_MODULE_${m}_HEADERS "${OPENCV_MODULE_${m}_LOCATION}/include" __hdrs)
|
|
+ string(REPLACE "+" "\\\\+" __pattern "${OPENCV_MODULE_${m}_LOCATION}/include")
|
|
+ ocv_list_filter(OPENCV_MODULE_${m}_HEADERS "${__pattern}" __hdrs)
|
|
list(APPEND opencv_hdrs ${__hdrs})
|
|
file(GLOB userdef_hdrs ${OPENCV_MODULE_${m}_LOCATION}/misc/python/pyopencv*.hpp)
|
|
list(APPEND opencv_userdef_hdrs ${userdef_hdrs})
|