mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 23:29:25 +00:00
CMake: Make MBEDTLSDIR and WPDPACK_DIR (Win32) overridable
This commit is contained in:
parent
04ff7926e7
commit
7bd2c565e6
@ -1,7 +1,10 @@
|
||||
set(LWIP_CONTRIB_DIR ${LWIP_DIR}/contrib)
|
||||
|
||||
# ARM mbedtls support https://tls.mbed.org/
|
||||
set(MBEDTLSDIR ${LWIP_DIR}/../mbedtls)
|
||||
if(NOT DEFINED MBEDTLSDIR)
|
||||
message(STATUS "MBEDTLSDIR not set - using default location ${LWIP_DIR}/../mbedtls")
|
||||
set(MBEDTLSDIR ${LWIP_DIR}/../mbedtls)
|
||||
endif()
|
||||
if(EXISTS ${MBEDTLSDIR}/CMakeLists.txt)
|
||||
set(LWIP_HAVE_MBEDTLS ON BOOL)
|
||||
|
||||
|
@ -16,7 +16,10 @@ set(lwipcontribportwindows_SRCS
|
||||
)
|
||||
|
||||
# pcapif needs WinPcap developer package: https://www.winpcap.org/devel.htm
|
||||
set(WPDPACK_DIR ${LWIP_DIR}/../WpdPack)
|
||||
if(NOT DEFINED WPDPACK_DIR)
|
||||
message(STATUS "WPDPACK_DIR not set - using default location ${LWIP_DIR}/../WpdPack")
|
||||
set(WPDPACK_DIR ${LWIP_DIR}/../WpdPack)
|
||||
endif()
|
||||
find_library(WPCAP wpcap HINTS ${WPDPACK_DIR}/lib)
|
||||
find_library(PACKET packet HINTS ${WPDPACK_DIR}/lib)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user