Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Compile vppinfra on macOS
[vpp.git]
/
src
/
vppinfra
/
CMakeLists.txt
diff --git
a/src/vppinfra/CMakeLists.txt
b/src/vppinfra/CMakeLists.txt
index
d5242e8
..
1e73335
100644
(file)
--- a/
src/vppinfra/CMakeLists.txt
+++ b/
src/vppinfra/CMakeLists.txt
@@
-44,7
+44,6
@@
set(VPPINFRA_SRCS
cpu.c
cuckoo_template.c
elf.c
cpu.c
cuckoo_template.c
elf.c
- elf_clib.c
elog.c
error.c
fheap.c
elog.c
error.c
fheap.c
@@
-84,8
+83,6
@@
set(VPPINFRA_SRCS
vec.c
vector.c
zvec.c
vec.c
vector.c
zvec.c
- linux/mem.c
- linux/sysfs.c
)
set(VPPINFRA_HEADERS
)
set(VPPINFRA_HEADERS
@@
-181,6
+178,14
@@
set(VPPINFRA_HEADERS
linux/sysfs.h
)
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
if(VPP_USE_DLMALLOC)
list(APPEND VPPINFRA_SRCS