File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,14 @@ foreach(module ${OPENCV_JAVA_MODULES})
149
149
file (STRINGS "${custom_header_list} " module_headers )
150
150
ocv_list_add_prefix (module_headers "${OPENCV_MODULE_opencv_${module} _LOCATION}/" )
151
151
else ()
152
- set (module_headers "${OPENCV_MODULE_opencv_${module} _HEADERS}" )
152
+ set (module_headers "" )
153
+ # TODO Implement module's "_HEADERS_PUBLIC" variable (OpenCVModule.cmake)
154
+ foreach (hdr ${OPENCV_MODULE_opencv_${module}_HEADERS} )
155
+ string (REGEX REPLACE "^.*opencv2/" "opencv2/" hdr2 "${hdr} " )
156
+ if (NOT hdr2 MATCHES "opencv2/${m} /private.*" AND hdr2 MATCHES "^(opencv2/?.*)/[^/]+.h(..)?$" )
157
+ list (APPEND module_headers "${hdr} " )
158
+ endif ()
159
+ endforeach ()
153
160
endif ()
154
161
155
162
if (NOT module_headers )
You can’t perform that action at this time.
0 commit comments