aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2023-01-09 11:27:24 +0200
committerLasse Collin <lasse.collin@tukaani.org>2023-03-11 21:34:26 +0200
commit7c337404bf8eedf574b30322524063048873df96 (patch)
tree574624ad6ea74cf8ff8d53ab664cd7aa8f6b664e
parentCMake/Windows: Add resource files to xz.exe and xzdec.exe. (diff)
downloadxz-7c337404bf8eedf574b30322524063048873df96.tar.xz
CMake: Fix a copypaste error in xzdec Windows resource file handling.
It was my mistake. Thanks to Iouri Kharon for the bug report.
-rw-r--r--CMakeLists.txt4
1 files changed, 2 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index d91eb4ca..e802f118 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -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()