diff --git a/contrib/ports/unix/lib/CMakeLists.txt b/contrib/ports/unix/lib/CMakeLists.txt index 93d17bd0..40229c44 100644 --- a/contrib/ports/unix/lib/CMakeLists.txt +++ b/contrib/ports/unix/lib/CMakeLists.txt @@ -19,6 +19,7 @@ set (LWIP_INCLUDE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/" ) +set (LWIP_EXCLUDE_SLIPIF TRUE) include(${LWIP_CONTRIB_DIR}/ports/unix/Filelists.cmake) include(${LWIP_DIR}/src/Filelists.cmake) diff --git a/src/Filelists.cmake b/src/Filelists.cmake index 6003c6fc..bbd814c5 100644 --- a/src/Filelists.cmake +++ b/src/Filelists.cmake @@ -98,9 +98,12 @@ set(lwipnetif_SRCS ${LWIP_DIR}/src/netif/ethernet.c ${LWIP_DIR}/src/netif/bridgeif.c ${LWIP_DIR}/src/netif/bridgeif_fdb.c - ${LWIP_DIR}/src/netif/slipif.c ) +if (NOT ${LWIP_EXCLUDE_SLIPIF}) + list(APPEND lwipnetif_SRCS ${LWIP_DIR}/src/netif/slipif.c) +endif() + # 6LoWPAN set(lwipsixlowpan_SRCS ${LWIP_DIR}/src/netif/lowpan6_common.c