From 552d1d1644393afe766c574dbd9d79022def29ce Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Thu, 30 Oct 2025 18:24:03 +0100 Subject: [PATCH] cmake: Fix abseil-cpp abseil_test_dll usage --- patches/abseil-cpp-20250814.1.patch | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/patches/abseil-cpp-20250814.1.patch b/patches/abseil-cpp-20250814.1.patch index bcef641cfb..868e14d63c 100644 --- a/patches/abseil-cpp-20250814.1.patch +++ b/patches/abseil-cpp-20250814.1.patch @@ -1,8 +1,21 @@ diff --git a/CMake/AbseilHelpers.cmake b/CMake/AbseilHelpers.cmake -index 624a3c7..8d0493d 100644 +index 624a3c7..dfe0680 100644 --- a/CMake/AbseilHelpers.cmake +++ b/CMake/AbseilHelpers.cmake -@@ -345,7 +345,7 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n") +@@ -326,7 +326,12 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n") + ) + + if (_build_type STREQUAL "dll") ++ if (${_in_dll}) + set(ABSL_CC_LIB_DEPS abseil_dll) ++ endif() ++ if(${_in_test_dll}) ++ set(ABSL_CC_LIB_DEPS abseil_test_dll) ++ endif() + endif() + + target_link_libraries(${_NAME} +@@ -345,7 +350,7 @@ Cflags: -I\${includedir}${PC_CFLAGS}\n") endif() endif()