From 74223338197b7dfcd69f56df78b6502805a75f23 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 15 Jun 2024 18:07:04 +0300 Subject: [PATCH] CMake: Use \040 instead of \x20 for a space This is for consistency with 4c81c9611f8b2e1ad65eb7fa166afc570c58607e where \040 has to be used because \0x20F gets interpret at three hex digits. Octals escapes are never longer than three digits. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4ebce3f4..c3a7e31b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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