File: Fix-libabsl-include.patch

package info (click to toggle)
libtgowt 0~git20230105.5098730%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 82,344 kB
  • sloc: cpp: 856,908; ansic: 119,817; asm: 36,281; java: 23,481; python: 6,553; objc: 4,297; sh: 2,619; cs: 471; makefile: 351; javascript: 286; xml: 272
file content (23 lines) | stat: -rw-r--r-- 738 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: Do not include libabsl.cmake if a system library is found
Author: Nicholas Guriev <guriev-ns@ya.ru>
Forwarded: https://github.com/desktop-app/tg_owt/pull/76
Last-Update: Sat, 11 Dec 2021 18:26:13 +0300

--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -77,7 +77,6 @@ include(cmake/init_target.cmake)
 include(cmake/generate_target.cmake)
 include(cmake/target_yasm_sources.cmake)
 include(cmake/external.cmake)
-include(cmake/libabsl.cmake)
 include(cmake/libcrc32c.cmake)
 include(cmake/libopenh264.cmake)
 include(cmake/libpffft.cmake)
@@ -2572,6 +2571,7 @@ if (TG_OWT_USE_PROTOBUF)
 endif()
 
 if (NOT absl_FOUND)
+    include(cmake/libabsl.cmake)
     list(APPEND export_targets libabsl)
 endif()
 if (NOT LIBOPENH264_FOUND)