vcpkg/ports/libsrt/fix-static.patch

27 lines
1.1 KiB
Diff
Raw Normal View History

2022-10-09 06:54:58 +02:00
diff --git a/CMakeLists.txt b/CMakeLists.txt
2024-03-30 08:23:14 +08:00
index 3f08b6a..88e636b 100644
2022-10-09 06:54:58 +02:00
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
2024-03-30 08:23:14 +08:00
@@ -1026,20 +1026,7 @@ endif()
2022-10-09 06:54:58 +02:00
if (srt_libspec_static)
add_library(${TARGET_srt}_static STATIC ${OBJECT_LIB_SUPPORT} ${VIRTUAL_srt})
-
- # For Windows, leave the name to be "srt_static.lib".
- # Windows generates two different library files:
- # - a usual static library for static linkage
- # - a shared library exposer, which allows pre-resolution and later dynamic
- # linkage when running the executable
- # Both having unfortunately the same names created by MSVC compiler.
- # It's not the case of Cygwin/MINGW - they are named there libsrt.a and libsrt.dll.a
- if (MICROSOFT)
- # Keep _static suffix. By unknown reason, the name must still be set explicitly.
- set_property(TARGET ${TARGET_srt}_static PROPERTY OUTPUT_NAME ${TARGET_srt}_static)
- else()
- set_property(TARGET ${TARGET_srt}_static PROPERTY OUTPUT_NAME ${TARGET_srt})
- endif()
+ set_property(TARGET ${TARGET_srt}_static PROPERTY OUTPUT_NAME ${TARGET_srt})
list (APPEND INSTALL_TARGETS ${TARGET_srt}_static)
if (ENABLE_ENCRYPTION)