Fixed broken headers install layout

pull/13383/head
Andrey Kamaev 13 years ago
parent 4ebb66362c
commit 628076b7da
  1. 7
      cmake/OpenCVModule.cmake

@ -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…
Cancel
Save