vcpkg/ports/liblzma/win_output_name.patch
Kai Pastor e9e1c40c76
[liblzma] Update to 5.4.0 (#28250)
* [liblzma] Update to 5.2.9

* Update to 5.4.0
2023-01-05 05:01:34 -08:00

18 lines
622 B
Diff

diff --git a/CMakeLists.txt b/CMakeLists.txt
index e80b524..cddbccb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -462,8 +462,11 @@ 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 ""
+ OUTPUT_NAME lzma
)
+if(WIN32 AND NOT MINGW)
+ set_target_properties(liblzma PROPERTIES RUNTIME_OUTPUT_NAME liblzma)
+endif()
# Create liblzma-config-version.cmake. We use this spelling instead of
# liblzmaConfig.cmake to make find_package work in case insensitive manner