Skip to content

Conversation

jchazalon
Copy link
Contributor

This pullrequest changes

This PR changes the file opencv-3.4.1/cmake/OpenCVDownload.cmake.
It suppresses the interpretation of string literals by switching ocv_download_log from a macro to a function.

This avoid the interpretation of string literals, which is one of the root causes for build errors in opencv_contrib because the output of libcurl (used to download extra files) can contain characters like \,which get interpreted and produce errors.

More information about the difference between cmake macros and functions is available here:

More details about the problem this PR fixes are available at:

This suppresses the interpretation of string literals by switching the ocv_download_log from a macro to a function.
This avoid crashes when the string to log contains escape characters.

More details about the problem this PR fixes are available at: opencv/opencv_contrib#1131
@opencv-pushbot opencv-pushbot merged commit bf5f738 into opencv:master Mar 8, 2018
opencv-pushbot pushed a commit that referenced this pull request Mar 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants