diff options
author | Damjan Marion <damarion@cisco.com> | 2018-09-03 12:30:36 +0200 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2018-09-03 16:51:40 +0000 |
commit | 4dffd1c9988020619caff9b8d3b350e7f79e0398 (patch) | |
tree | 58d6b48f3925e815b68dfe04d3946c80ad1c24a1 /src/vppinfra/CMakeLists.txt | |
parent | ea5b5be4eeb0f4cd80cb466bd6e31cad33c57960 (diff) |
Compile vppinfra on macOS
Add missing calls to clib_mem_init to vppinfra test codes.
Change-Id: I53ffc6fc287d1a378065bb86c18b6e995ecdb775
Signed-off-by: Damjan Marion <damarion@cisco.com>
Signed-off-by: Dave Barach <dave@barachs.net>
Diffstat (limited to 'src/vppinfra/CMakeLists.txt')
-rw-r--r-- | src/vppinfra/CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/vppinfra/CMakeLists.txt b/src/vppinfra/CMakeLists.txt index d5242e88066..1e73335275e 100644 --- a/src/vppinfra/CMakeLists.txt +++ b/src/vppinfra/CMakeLists.txt @@ -44,7 +44,6 @@ set(VPPINFRA_SRCS cpu.c cuckoo_template.c elf.c - elf_clib.c elog.c error.c fheap.c @@ -84,8 +83,6 @@ set(VPPINFRA_SRCS vec.c vector.c zvec.c - linux/mem.c - linux/sysfs.c ) set(VPPINFRA_HEADERS @@ -181,6 +178,14 @@ set(VPPINFRA_HEADERS linux/sysfs.h ) +if("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux") + list(APPEND VPPINFRA_SRCS + elf_clib.c + linux/mem.c + linux/sysfs.c + ) +endif() + if(VPP_USE_DLMALLOC) list(APPEND VPPINFRA_SRCS |