From 7c33d65b5988abab3fa6f8c25860c69588c6f727 Mon Sep 17 00:00:00 2001 From: Andrey Kamaev Date: Thu, 12 Apr 2012 11:55:33 +0000 Subject: [PATCH] Fixed broken by r8007 install target --- cmake/OpenCVModule.cmake | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/OpenCVModule.cmake b/cmake/OpenCVModule.cmake index a27d3671f8..beb2fb1d04 100644 --- a/cmake/OpenCVModule.cmake +++ b/cmake/OpenCVModule.cmake @@ -481,8 +481,8 @@ macro(ocv_create_module) # only "public" headers need to be installed if(OPENCV_MODULE_${the_module}_HEADERS AND OPENCV_MODULES_PUBLIC MATCHES "(^|;)${the_module}(;|$)") foreach(hdr ${OPENCV_MODULE_${the_module}_HEADERS}) - string(REGEX REPLACE "^.*opencv2/" "opencv2/" hdr "${hdr}") - if(hdr MATCHES "^(opencv2/.*)/[^/]+.h(..)?$") + string(REGEX REPLACE "^.*opencv2/" "opencv2/" hdr2 "${hdr}") + if(hdr2 MATCHES "^(opencv2/.*)/[^/]+.h(..)?$") install(FILES ${hdr} DESTINATION "${OPENCV_INCLUDE_PREFIX}/${CMAKE_MATCH_1}" COMPONENT main) endif() endforeach()