ports/net-im/tg_owt/files/patch-cmake_external.cmake
Sergey A. Osokin 19aebafb74 net-im/tg_owt: fix build when devel/abseil installed
Resurrect the patch that helps resolve a build issue when
devel/abseil installed in the system.
While I'm here regen another patch.

Fixes:	3637dcfb11
2023-01-11 12:57:12 -05:00

12 lines
464 B
CMake

--- cmake/external.cmake.orig 2023-01-11 16:35:01 UTC
+++ cmake/external.cmake
@@ -120,6 +120,9 @@ function(link_libabsl target_name)
absl::type_traits
absl::variant
)
+ find_package(PkgConfig REQUIRED)
+ pkg_check_modules(ABSL REQUIRED QUIET absl_flags)
+ target_include_directories(${target_name} PRIVATE ${ABSL_INCLUDE_DIRS})
endif()
endif()
if (NOT absl_FOUND)