X-Git-Url: https://gerrit.fd.io/r/gitweb?p=vpp.git;a=blobdiff_plain;f=src%2Fvppinfra%2FCMakeLists.txt;h=8ec843ad2ca80148ddcaa2baaf41f675f498ea0b;hp=07fc1095c6bf7af9207e794f4e7617c7a71e3b4c;hb=67d7acd05;hpb=cf5ba26700845b3956beb71314875fa192f5b711 diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index 07fc1095c6b..8ec843ad2ca 100644 --- a/src/vppinfra/CMakeLists.txt +++ b/src/vppinfra/CMakeLists.txt @@ -200,9 +200,13 @@ if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") ) endif() +option(VPP_USE_EXTERNAL_LIBEXECINFO "Use external libexecinfo (useful for non-glibc targets)." OFF) +if(VPP_USE_EXTERNAL_LIBEXECINFO) + set(EXECINFO_LIB execinfo) +endif() add_vpp_library(vppinfra SOURCES ${VPPINFRA_SRCS} - LINK_LIBRARIES m + LINK_LIBRARIES m ${EXECINFO_LIB} INSTALL_HEADERS ${VPPINFRA_HEADERS} COMPONENT libvppinfra LTO