diff options
author | Dave Barach <dave@barachs.net> | 2020-01-21 12:34:55 -0500 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2020-02-05 23:38:56 +0000 |
commit | a690fdbfe179e0ea65818c03b52535bf9210efd0 (patch) | |
tree | 345200955b873dbc2f5bb6857b1acc7966ffed90 /src/vppinfra/CMakeLists.txt | |
parent | 86e8bce44f43c1f3c50a3397f9ab850f484f4cad (diff) |
vppinfra: numa vector placement support
Type: feature
Signed-off-by: Dave Barach <dave@barachs.net>
Change-Id: I7e7d95a089dd849c1f01ecea84529d8dbf239f21
Diffstat (limited to 'src/vppinfra/CMakeLists.txt')
-rw-r--r-- | src/vppinfra/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index 1c234cce234..60e6eeff9fe 100644 --- a/src/vppinfra/CMakeLists.txt +++ b/src/vppinfra/CMakeLists.txt @@ -24,6 +24,13 @@ else(VPP_USE_DLMALLOC) set(DLMALLOC 0) endif(VPP_USE_DLMALLOC) +find_library(NUMA numa) +if (NUMA) + set(NUMA_LIBRARY_FOUND 1) +else(NUMA) + set(NUMA_LIBRARY_FOUND 0) +endif() + configure_file( ${CMAKE_SOURCE_DIR}/vppinfra/config.h.in ${CMAKE_BINARY_DIR}/vppinfra/config.h @@ -210,7 +217,7 @@ endif(VPP_USE_DLMALLOC) add_vpp_library(vppinfra SOURCES ${VPPINFRA_SRCS} - LINK_LIBRARIES m + LINK_LIBRARIES m ${NUMA} INSTALL_HEADERS ${VPPINFRA_HEADERS} COMPONENT libvppinfra ) |