aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/libsrt/pkgconfig.diff
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/libsrt/pkgconfig.diff
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/libsrt/pkgconfig.diff')
-rw-r--r--vcpkg/ports/libsrt/pkgconfig.diff16
1 files changed, 16 insertions, 0 deletions
diff --git a/vcpkg/ports/libsrt/pkgconfig.diff b/vcpkg/ports/libsrt/pkgconfig.diff
new file mode 100644
index 0000000..5235e84
--- /dev/null
+++ b/vcpkg/ports/libsrt/pkgconfig.diff
@@ -0,0 +1,16 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 1492306..69287ec 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1182,7 +1182,11 @@ endif()
+ # if your build requires it, you'd probably remove -lstdc++ from the list
+ # obtained by `pkg-config --libs`.
+ if(ENABLE_CXX_DEPS)
++ cmake_policy(SET CMP0057 NEW)
+ foreach(LIB ${CMAKE_CXX_IMPLICIT_LINK_LIBRARIES})
++ if(LIB IN_LIST CMAKE_C_IMPLICIT_LINK_LIBRARIES)
++ continue()
++ endif()
+ if((IS_ABSOLUTE ${LIB} AND EXISTS ${LIB}) OR (${LIB} MATCHES "^-l"))
+ set(SRT_LIBS_PRIVATE ${SRT_LIBS_PRIVATE} ${LIB})
+ else()