mirror of
https://github.com/opencv/opencv.git
synced 2024-12-19 20:18:01 +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
|
# only "public" headers need to be installed
|
||||||
if(OPENCV_MODULE_${the_module}_HEADERS AND OPENCV_MODULES_PUBLIC MATCHES "(^|;)${the_module}(;|$)")
|
if(OPENCV_MODULE_${the_module}_HEADERS AND OPENCV_MODULES_PUBLIC MATCHES "(^|;)${the_module}(;|$)")
|
||||||
install(FILES ${OPENCV_MODULE_${the_module}_HEADERS}
|
foreach(hdr ${OPENCV_MODULE_${the_module}_HEADERS})
|
||||||
DESTINATION ${OPENCV_INCLUDE_PREFIX}/opencv2/${name} COMPONENT main)
|
if(hdr MATCHES "(opencv2/.*)/[^/]+.h(..)?$")
|
||||||
|
install(FILES ${hdr} DESTINATION "${OPENCV_INCLUDE_PREFIX}/${CMAKE_MATCH_1}" COMPONENT main)
|
||||||
|
endif()
|
||||||
|
endforeach()
|
||||||
endif()
|
endif()
|
||||||
endmacro()
|
endmacro()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user