projects
/
profile
/
ivi
/
opencv.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dcadc4f
)
Fixed problem with backslashes in embedded build information.
author
Andrey Kamaev
<no@email>
Fri, 6 Apr 2012 20:03:21 +0000
(20:03 +0000)
committer
Andrey Kamaev
<no@email>
Fri, 6 Apr 2012 20:03:21 +0000
(20:03 +0000)
cmake/OpenCVUtils.cmake
patch
|
blob
|
history
diff --git
a/cmake/OpenCVUtils.cmake
b/cmake/OpenCVUtils.cmake
index
7b67487
..
194f976
100644
(file)
--- 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()