REM:
1. lwip编译为静态库进行链接
This commit is contained in:
huangxin 2022-06-10 16:15:56 +08:00
parent 93e9da2085
commit af1f02d99d
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ include(${LWIP_LINUX_DIR}/Filelists.cmake)
include_directories(${LWIP_DIR}/../libs/include ${LWIP_DIR}/../include)
add_library(${LWIP_LIB_NAME} ${lwipnoapps_SRCS} ${lwipcontribportunix_SRCS} ${lwipcontribportunixnetifs_SRCS})
add_library(${LWIP_LIB_NAME} STATIC ${lwipnoapps_SRCS} ${lwipcontribportunix_SRCS} ${lwipcontribportunixnetifs_SRCS})
target_compile_options(${LWIP_LIB_NAME} PRIVATE ${LWIP_COMPILER_FLAGS})
target_compile_definitions(${LWIP_LIB_NAME} PRIVATE ${LWIP_DEFINITIONS} ${LWIP_MBEDTLS_DEFINITIONS})
target_include_directories(${LWIP_LIB_NAME} PRIVATE ${LWIP_INCLUDE_DIRS} ${LWIP_MBEDTLS_INCLUDE_DIRS})