From: Maksim Shabunin Date: Fri, 27 Jul 2018 11:29:01 +0000 (+0300) Subject: cmake: fixed builds in directories containing plus sign X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1^2~597^2~17^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0aded5aae6090a2a3d95b3e5d6afc16ec21371f7;p=platform%2Fupstream%2Fopencv.git cmake: fixed builds in directories containing plus sign --- diff --git a/modules/python/bindings/CMakeLists.txt b/modules/python/bindings/CMakeLists.txt index f7c86e0..9d0346d 100644 --- a/modules/python/bindings/CMakeLists.txt +++ b/modules/python/bindings/CMakeLists.txt @@ -20,8 +20,12 @@ 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) - list(APPEND opencv_hdrs ${__hdrs}) + foreach (hdr ${OPENCV_MODULE_${m}_HEADERS}) + 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) list(APPEND opencv_userdef_hdrs ${userdef_hdrs}) endforeach(m)