]> git.ipfire.org Git - thirdparty/xz.git/commitdiff
CMake/Windows: Fix the import library filename.
authorLasse Collin <lasse.collin@tukaani.org>
Sun, 1 Oct 2023 16:10:57 +0000 (19:10 +0300)
committerLasse Collin <lasse.collin@tukaani.org>
Tue, 7 May 2024 13:25:15 +0000 (16:25 +0300)
Both PREFIX and IMPORT_PERFIX have to be set to "" to get
liblzma.dll and liblzma.dll.a.

(cherry picked from commit da4d04e4d6e199d28b58bd2e0df4e120c52dd5d7)

CMakeLists.txt

index dd51b91aeced5e83b136ce467f4f57ea65025aa3..27580d03241e8e759814a2c4f8702c56c57005a0 100644 (file)
@@ -504,6 +504,7 @@ set_target_properties(liblzma PROPERTIES
     # It's liblzma.so or liblzma.dll, not libliblzma.so or lzma.dll.
     # Avoid the name lzma.dll because it would conflict with LZMA SDK.
     PREFIX ""
+    IMPORT_PREFIX ""
 )
 
 # Create liblzma-config-version.cmake. We use this spelling instead of