Merge topic 'BundleUtilities-os9-newlines'
810f5cce BundleUtilities: Allow Info.plist files which use CR line endings
This commit is contained in:
commit
f85dee25fb
@ -237,6 +237,7 @@ function(get_bundle_main_executable bundle result_var)
|
|||||||
file(READ "${bundle}/Contents/Info.plist" info_plist)
|
file(READ "${bundle}/Contents/Info.plist" info_plist)
|
||||||
string(REPLACE ";" "\\;" info_plist "${info_plist}")
|
string(REPLACE ";" "\\;" info_plist "${info_plist}")
|
||||||
string(REPLACE "\n" "${eol_char};" info_plist "${info_plist}")
|
string(REPLACE "\n" "${eol_char};" info_plist "${info_plist}")
|
||||||
|
string(REPLACE "\r" "${eol_char};" info_plist "${info_plist}")
|
||||||
|
|
||||||
# Scan the lines for "<key>CFBundleExecutable</key>" - the line after that
|
# Scan the lines for "<key>CFBundleExecutable</key>" - the line after that
|
||||||
# is the name of the main executable.
|
# is the name of the main executable.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user