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.
This commit is contained in:
Lasse Collin 2023-01-10 08:29:32 +02:00
parent 6e652ceb18
commit 5e34774c31
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ if(WIN32 AND CMAKE_C_COMPILER_ID STREQUAL "GNU")
# Use workarounds with GNU windres. The \x20 in PACKAGE_NAME works # 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 # with gcc too so we don't need to worry how to pass different flags
# to windres and gcc. # 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") set(PACKAGE_NAME "XZ\\x20Utils")
else() else()
# Elsewhere a space is safe. This also keeps things compatible with # Elsewhere a space is safe. This also keeps things compatible with