Commit 0aded5aa authored by Maksim Shabunin's avatar Maksim Shabunin

cmake: fixed builds in directories containing plus sign

parent 2f0fc920
...@@ -20,8 +20,12 @@ endforeach() ...@@ -20,8 +20,12 @@ endforeach()
set(opencv_hdrs "") set(opencv_hdrs "")
set(opencv_userdef_hdrs "") set(opencv_userdef_hdrs "")
foreach(m ${OPENCV_PYTHON_MODULES}) foreach(m ${OPENCV_PYTHON_MODULES})
ocv_list_filter(OPENCV_MODULE_${m}_HEADERS "${OPENCV_MODULE_${m}_LOCATION}/include" __hdrs) foreach (hdr ${OPENCV_MODULE_${m}_HEADERS})
list(APPEND opencv_hdrs ${__hdrs}) ocv_is_subdir(is_sub "${OPENCV_MODULE_${m}_LOCATION}/include" "${hdr}")
if(is_sub)
list(APPEND opencv_hdrs "${hdr}")
endif()
endforeach()
file(GLOB userdef_hdrs ${OPENCV_MODULE_${m}_LOCATION}/misc/python/pyopencv*.hpp) file(GLOB userdef_hdrs ${OPENCV_MODULE_${m}_LOCATION}/misc/python/pyopencv*.hpp)
list(APPEND opencv_userdef_hdrs ${userdef_hdrs}) list(APPEND opencv_userdef_hdrs ${userdef_hdrs})
endforeach(m) endforeach(m)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment