]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake: Fix a copypaste error in xzdec Windows resource file handling.
authorLasse Collin <lasse.collin@tukaani.org>
Mon, 9 Jan 2023 09:27:24 +0000 (11:27 +0200)
committerLasse Collin <lasse.collin@tukaani.org>
Sat, 11 Mar 2023 19:34:26 +0000 (21:34 +0200)
It was my mistake. Thanks to Iouri Kharon for the bug report.

CMakeLists.txt

index d91eb4ca0d48cef04fdebe0f1f0b2409f8030335..e802f118ff86251fefbf6684104181038f03210e 100644 (file)
@@ -567,8 +567,8 @@ if(HAVE_GETOPT_LONG)
 
     if(WIN32)
         # Add the Windows resource file for xzdec.exe.
-        target_sources(xz PRIVATE src/xzdec/xzdec_w32res.rc)
-        set_target_properties(xz PROPERTIES
+        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"
         )
     endif()