aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libsrt/fix-static.patch
blob: 6080c915a430a724f571c04194a255d98e9971d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 3f08b6a..88e636b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1026,20 +1026,7 @@ endif()
 
 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)