diff options
author | Tim Blechmann <tim@klingt.org> | 2014-08-07 17:30:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-08-07 18:00:01 (GMT) |
commit | 810f5ccefc113987fc6f68c073ab9c84fc278b32 (patch) | |
tree | 81b44e0beef368ba1e1cb3fd8ac171497f8fbd2e /Modules/BundleUtilities.cmake | |
parent | 6f0d1a38c8eee267cf16c4b6bae90ddf218f3088 (diff) | |
download | CMake-810f5ccefc113987fc6f68c073ab9c84fc278b32.zip CMake-810f5ccefc113987fc6f68c073ab9c84fc278b32.tar.gz CMake-810f5ccefc113987fc6f68c073ab9c84fc278b32.tar.bz2 |
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 <tim@klingt.org>
Diffstat (limited to 'Modules/BundleUtilities.cmake')
-rw-r--r-- | Modules/BundleUtilities.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake index 0c733fa..0046c97 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(REPLACE ";" "\\;" 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 # is the name of the main executable. |