From 85801c96c32456300177fbbad1506b07f5dd0a47 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 (cherry picked from commit dc7b9f24b737e4e55bcbbdde6754883f991c2cfb) --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index edba0a07..dc01f000 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1628,7 +1628,7 @@ if(HAVE_DECODERS AND (NOT MSVC OR MSVC_VERSION GREATER_EQUAL 1900)) 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" )