From 5e34774c31d1b7509b5cb77a3be9973adec59ea0 Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Tue, 10 Jan 2023 08:29:32 +0200 Subject: CMake: Fix appending to CMAKE_RC_FLAGS. It's a string, not a list. It only worked when the variable was empty. Thanks to Iouri Kharon. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index f3d5fc76..e5b4e5b5 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -97,7 +97,7 @@ if(WIN32 AND CMAKE_C_COMPILER_ID STREQUAL "GNU") # Use workarounds with GNU windres. The \x20 in PACKAGE_NAME works # with gcc too so we don't need to worry how to pass different flags # to windres and gcc. - list(APPEND CMAKE_RC_FLAGS "--use-temp-file") + string(APPEND CMAKE_RC_FLAGS " --use-temp-file") set(PACKAGE_NAME "XZ\\x20Utils") else() # Elsewhere a space is safe. This also keeps things compatible with -- cgit v1.2.3