CMake: Make MBEDTLSDIR and WPDPACK_DIR (Win32) overridable

This commit is contained in:
Dirk Ziegelmeier 2018-10-02 13:06:01 +02:00
parent 04ff7926e7
commit 7bd2c565e6
2 changed files with 8 additions and 2 deletions

View File

@ -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)

View File

@ -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)