mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 19:38:02 +08:00
Fixed broken headers install layout
This commit is contained in:
parent
4ebb66362c
commit
628076b7da
@ -426,8 +426,11 @@ macro(ocv_create_module)
|
||||
|
||||
# only "public" headers need to be installed
|
||||
if(OPENCV_MODULE_${the_module}_HEADERS AND OPENCV_MODULES_PUBLIC MATCHES "(^|;)${the_module}(;|$)")
|
||||
install(FILES ${OPENCV_MODULE_${the_module}_HEADERS}
|
||||
DESTINATION ${OPENCV_INCLUDE_PREFIX}/opencv2/${name} COMPONENT main)
|
||||
foreach(hdr ${OPENCV_MODULE_${the_module}_HEADERS})
|
||||
if(hdr MATCHES "(opencv2/.*)/[^/]+.h(..)?$")
|
||||
install(FILES ${hdr} DESTINATION "${OPENCV_INCLUDE_PREFIX}/${CMAKE_MATCH_1}" COMPONENT main)
|
||||
endif()
|
||||
endforeach()
|
||||
endif()
|
||||
endmacro()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user