From: Andrey Kamaev Date: Fri, 6 Apr 2012 20:03:21 +0000 (+0000) Subject: Fixed problem with backslashes in embedded build information. X-Git-Tag: accepted/tizen/6.0/unified/20201030.111113~1314^2~2229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=99b24f77c5a58f1c396b3e14c244982146d88726;p=platform%2Fupstream%2Fopencv.git Fixed problem with backslashes in embedded build information. --- diff --git a/cmake/OpenCVUtils.cmake b/cmake/OpenCVUtils.cmake index 7b67487..194f976 100644 --- a/cmake/OpenCVUtils.cmake +++ b/cmake/OpenCVUtils.cmake @@ -108,9 +108,8 @@ set(OPENCV_BUILD_INFO_FILE "${OpenCV_BINARY_DIR}/version_string.tmp") file(REMOVE "${OPENCV_BUILD_INFO_FILE}") function(ocv_output_status msg) message(STATUS "${msg}") - if(msg MATCHES "\"") - string(REPLACE "\"" "\\\"" msg "${msg}") - endif() + string(REPLACE "\\" "\\\\" msg "${msg}") + string(REPLACE "\"" "\\\"" msg "${msg}") file(APPEND "${OPENCV_BUILD_INFO_FILE}" "\"${msg}\\n\"\n") endfunction()