cmake: Fix abseil-cpp abseil_test_dll usage

This commit is contained in:
Corentin Le Molgat
2025-10-30 18:24:03 +01:00
parent 931536da04
commit 552d1d1644

View File

@@ -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()