[cmake-developers] [patch] fix Info.plist parser
Ben Boeckel
ben.boeckel at kitware.com
Mon Aug 11 12:54:25 EDT 2014
On Thu, Aug 07, 2014 at 19:36:54 +0200, Tim Blechmann wrote:
> diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake
> index b896de2..60d01b5 100644
> --- a/Modules/BundleUtilities.cmake
> +++ b/Modules/BundleUtilities.cmake
> @@ -237,6 +237,7 @@ function(get_bundle_main_executable bundle result_var)
> file(READ "${bundle}/Contents/Info.plist" info_plist)
> string(REGEX REPLACE ";" "\\\\;" info_plist "${info_plist}")
> string(REGEX REPLACE "\n" "${eol_char};" info_plist "${info_plist}")
> + string(REGEX REPLACE "\r" "${eol_char};" info_plist "${info_plist}")
Do these need to be REGEX REPLACE? Any problem with straight REPLACE?
--Ben
More information about the cmake-developers
mailing list