Fix dependencies in add_sapi_library

PiperOrigin-RevId: 350307675
Change-Id: Ib3a085ad214690083fcf23a791f194c37223da11
This commit is contained in:
Wiktor Garbacz 2021-01-06 01:48:32 -08:00 committed by Copybara-Service
parent 3e8a60c5b1
commit a59cb96d52

View File

@ -190,12 +190,15 @@ function(add_sapi_library)
"${_sapi_gen_header}" "${_sapi_gen_header}"
${_sapi_SOURCES} ${_sapi_SOURCES}
) )
target_link_libraries("${_sapi_NAME}" PRIVATE target_link_libraries("${_sapi_NAME}" PUBLIC
absl::status
absl::statusor
sapi::sapi sapi::sapi
sapi::status
sapi::vars sapi::vars
) )
if(NOT _sapi_NOEMBED) if(NOT _sapi_NOEMBED)
target_link_libraries("${_sapi_NAME}" PRIVATE target_link_libraries("${_sapi_NAME}" PUBLIC
"${_sapi_embed}" "${_sapi_embed}"
) )
endif() endif()