diff options
author | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-06 19:51:33 (GMT) |
---|---|---|
committer | Rolf Eike Beer <eike@sf-mail.de> | 2014-04-14 16:17:05 (GMT) |
commit | 5bd48ac5348885e15ebb23ea825a1ea777985b97 (patch) | |
tree | 340ac037fe081ef314cb12ecdfca2b229c2f4ea8 /Modules/BundleUtilities.cmake | |
parent | 2622bc3f65162bf6d6cb5838da6999f8b5ca75cf (diff) | |
download | CMake-5bd48ac5348885e15ebb23ea825a1ea777985b97.zip CMake-5bd48ac5348885e15ebb23ea825a1ea777985b97.tar.gz CMake-5bd48ac5348885e15ebb23ea825a1ea777985b97.tar.bz2 |
Replace string(REGEX REPLACE) with string(REPLACE) where possible
The simple replacement is much faster.
Diffstat (limited to 'Modules/BundleUtilities.cmake')
-rw-r--r-- | Modules/BundleUtilities.cmake | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/BundleUtilities.cmake b/Modules/BundleUtilities.cmake index b896de2..eaddd04 100644 --- a/Modules/BundleUtilities.cmake +++ b/Modules/BundleUtilities.cmake @@ -235,8 +235,8 @@ function(get_bundle_main_executable bundle result_var) # set(eol_char "E") 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(REPLACE ";" "\\;" info_plist "${info_plist}") + string(REPLACE "\n" "${eol_char};" info_plist "${info_plist}") # Scan the lines for "<key>CFBundleExecutable</key>" - the line after that # is the name of the main executable. @@ -394,7 +394,7 @@ function(get_item_key item key_var) if(WIN32) string(TOLOWER "${item_name}" item_name) endif() - string(REGEX REPLACE "\\." "_" ${key_var} "${item_name}") + string(REPLACE "." "_" ${key_var} "${item_name}") set(${key_var} ${${key_var}} PARENT_SCOPE) endfunction() |