CMake build system: It is now sufficient to set LWIP_DIR for build

This commit is contained in:
Dirk Ziegelmeier
2018-10-02 12:54:56 +02:00
parent 4b672a1f3c
commit 04ff7926e7
5 changed files with 10 additions and 16 deletions

View File

@@ -8,10 +8,8 @@ if (NOT CMAKE_SYSTEM_NAME STREQUAL Linux AND NOT CMAKE_SYSTEM_NAME STREQUAL GNU)
message(FATAL_ERROR "Lwip shared library is only working on Linux or the Hurd")
endif()
set(LWIP_CONTRIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../..)
set(LWIP_DIR ${LWIP_CONTRIB_DIR}/..)
include(${LWIP_CONTRIB_DIR}/ports/CMakeCommon.cmake)
set(LWIP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../../../..)
include(${LWIP_DIR}/contrib/ports/CMakeCommon.cmake)
set (LWIP_DEFINITIONS -DLWIP_DEBUG)
set (LWIP_INCLUDE_DIRS