From dc7b9f24b737e4e55bcbbdde6754883f991c2cfb Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Wed, 25 Sep 2024 16:41:37 +0300 Subject: [PATCH] Windows/CMake: Use the correct resource file for lzmadec.exe CMakeLists.txt was using xzdec_w32res.rc for both xzdec and lzmadec. Fixes: 998d0b29536094a89cf385a3b894e157db1ccefe --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 710dc455..8cf970fc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1850,7 +1850,7 @@ if(HAVE_DECODERS) if(WIN32) # Add the Windows resource file for xzdec.exe or lzmadec.exe. - target_sources("${XZDEC}" PRIVATE src/xzdec/xzdec_w32res.rc) + target_sources("${XZDEC}" PRIVATE "src/xzdec/${XZDEC}_w32res.rc") set_target_properties("${XZDEC}" PROPERTIES LINK_DEPENDS "${CMAKE_CURRENT_SOURCE_DIR}/src/common/common_w32res.rc" )