aboutsummaryrefslogtreecommitdiff
path: root/ports/liblzma/win_output_name.patch
blob: b6e3cd8ee86bb7b746e3906ae4a8a55c857c2db4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 120dc7548..728ca3591 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -398,11 +398,12 @@ else()
 endif()
 
 if(WIN32)
+    set_target_properties(liblzma PROPERTIES OUTPUT_NAME lzma)
     if(BUILD_SHARED_LIBS)
         # Add the Windows resource file for liblzma.dll.
         target_sources(liblzma PRIVATE src/liblzma/liblzma_w32res.rc)
         target_include_directories(liblzma PRIVATE windows/vs2019)
 
         # Export the public API symbols with __declspec(dllexport).
         target_compile_definitions(liblzma PRIVATE DLL_EXPORT)
     else()