From: Lasse Collin Date: Mon, 9 Jan 2023 09:27:24 +0000 (+0200) Subject: CMake: Fix a copypaste error in xzdec Windows resource file handling. X-Git-Tag: v5.2.11~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c337404bf8eedf574b30322524063048873df96;p=thirdparty%2Fxz.git CMake: Fix a copypaste error in xzdec Windows resource file handling. It was my mistake. Thanks to Iouri Kharon for the bug report. --- 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()