Parcourir la source

Merge branch 'backport-BundleUtilities-os9-newlines' into release

Brad King il y a 11 ans
Parent
commit
81a4ca57f8
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  1. 1 0
      Modules/BundleUtilities.cmake

+ 1 - 0
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 "<key>CFBundleExecutable</key>" - the line after that
     # is the name of the main executable.