Commit 7e8d8018 by Derek Mauro Committed by Copybara-Service

Fix pkgconfig generation broken by 14abd930

In the non-dll case, don't set the LNK_LIB variable in the deps loop.

PiperOrigin-RevId: 503854597
Change-Id: Ic57711c1ed95b998e6ca4f27a0a7982ee99595e2
parent 4eef1617
......@@ -157,6 +157,9 @@ function(absl_cc_library)
else()
set(PC_VERSION "head")
endif()
if(NOT _build_type STREQUAL "dll")
set(LNK_LIB "${LNK_LIB} -labsl_${_NAME}")
endif()
foreach(dep ${ABSL_CC_LIB_DEPS})
if(${dep} MATCHES "^absl::(.*)")
# for DLL builds many libs are not created, but add
......@@ -179,7 +182,6 @@ function(absl_cc_library)
set(PC_DEPS "${PC_DEPS},")
endif()
set(PC_DEPS "${PC_DEPS} absl_${CMAKE_MATCH_1} = ${PC_VERSION}")
set(LNK_LIB "${LNK_LIB} -labsl_${_NAME}")
endif()
endif()
endforeach()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment