CMake: Use \040 instead of \x20 for a space

This is for consistency with 4c81c9611f
where \040 has to be used because \0x20F gets interpret at three hex
digits. Octals escapes are never longer than three digits.
This commit is contained in:
Lasse Collin 2024-06-15 18:07:04 +03:00
parent e8854b6bdc
commit 7422333819
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ if((MINGW OR CYGWIN OR MSYS) AND (
# to worry how to pass different flags to windres and the C compiler.
# Keep the original PACKAGE_NAME intact for generation of liblzma.pc.
string(APPEND CMAKE_RC_FLAGS " --use-temp-file")
string(REPLACE " " "\\x20" PACKAGE_NAME_DEFINITION "${PACKAGE_NAME}")
string(REPLACE " " "\\040" PACKAGE_NAME_DEFINITION "${PACKAGE_NAME}")
# Use octal because "Program Files" would become \x20F.
string(REPLACE " " "\\040" LOCALEDIR_DEFINITION