From 00ad505b374f80c72e6576bb0cb3829521964239 Mon Sep 17 00:00:00 2001 From: Tim Blechmann Date: Thu, 7 Aug 2014 19:30:27 +0200 Subject: [PATCH] BundleUtilities: Allow Info.plist files which use CR line endings Convert \r to our internal end-of-line character just as we do \n. Signed-off-by: Tim Blechmann --- Modules/BundleUtilities.cmake | 1 + 1 file changed, 1 insertion(+) diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake index b896de21b..60d01b541 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}") # Scan the lines for "CFBundleExecutable" - the line after that # is the name of the main executable.