]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
Windows/CMake: Use the correct resource file for lzmadec.exe
authorLasse Collin <lasse.collin@tukaani.org>
Wed, 25 Sep 2024 13:41:37 +0000 (16:41 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Wed, 25 Sep 2024 18:31:06 +0000 (21:31 +0300)
CMakeLists.txt was using xzdec_w32res.rc for both xzdec and lzmadec.

Fixes: 998d0b29536094a89cf385a3b894e157db1ccefe
CMakeLists.txt

index 710dc455ba843027b9d8135fe17e18326d909778..8cf970fc2ca26c74e4f6ed913597e148c0340e75 100644 (file)
@@ -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"
             )